joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b72b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x1c
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4253ed
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x42538d
xor ecx, ecx
jmp 0x4253a5
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425396
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00422d00
push 0x495194
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
push esi
call fcn.0042bae0
add esp, 0xc
cmp dword [ebp - 0x21c], 8
jb 0x42540d
push dword [ebp - 0x230]
call fcn.0045a050
add esp, 4
jmp 0x42540d
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x495130
mov word [esi], ax
call fcn.00422d00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret

Function at 0x425430
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0xb
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
je 0x4254b9
xor eax, eax
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x42548f
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push eax
jmp 0x4254c4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x4254a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4254a0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
jmp 0x4254c4
xor eax, eax
push eax
mov word [esi], ax
push 0x495130
mov ecx, esi
call fcn.00422d00
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
Function at 0x425640
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
je 0x4256c9
xor eax, eax
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x42569f
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push eax
jmp 0x4256d4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x4256b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4256b0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
jmp 0x4256d4
xor eax, eax
push eax
mov word [esi], ax
push 0x495130
mov ecx, esi
call fcn.00422d00
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret

Function at 0x4256f0
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0
push 0x26
push eax
push 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
je 0x425779
xor eax, eax
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x425750
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push eax
jmp 0x425784
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425760
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
jmp 0x425784
xor eax, eax
push eax
mov word [esi], ax
push 0x495130
mov ecx, esi
call fcn.00422d00
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
Function at 0x426090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4a8800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x4260cc
mov eax, dword [edi]
jmp 0x4260ce
mov eax, edi
xor esi, esi
mov word [eax], si
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
cmp dword [edx + 0x14], 8
jb 0x4260e7
mov edx, dword [edx]
push 0x20019
push edx
push ecx
lea ecx, [ebp - 0x20]
call fcn.00423970
mov edx, dword [ebp - 0x20]
test eax, eax
sete bl
test bl, bl
je 0x4261d1
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x426113
xor ecx, ecx
jmp 0x42611f
cmp dword [esi + 0x14], 8
jb 0x42611d
mov ecx, dword [esi]
jmp 0x42611f
mov ecx, esi
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [ebp + 0xc], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
je 0x42614c
xor eax, eax
jmp 0x42616c
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x426162
cmp eax, 2
je 0x426162
mov ecx, 0xd
xor eax, eax
jmp 0x42616c
mov eax, dword [ebp - 0x10]
shr eax, 1
xor ecx, ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
sete bl
test bl, bl
je 0x4261ce
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00459559
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x10], 0
jne 0x42619b
xor esi, esi
jmp 0x4261a3
cmp dword [esi + 0x14], 8
jb 0x4261a3
mov esi, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00423a20
mov esi, dword [ebp - 0x10]
test eax, eax
sete bl
test bl, bl
je 0x4261c5
push esi
mov ecx, edi
call fcn.00422aa0
push esi
call fcn.0045a610
add esp, 4
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x4261dc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426740
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
push edi
mov edi, dword [ebp + 8]
mov al, byte [esi + 0x31]
mov byte [ebp - 0x21], al
mov eax, dword [esi + 0x34]
sub eax, ebx
je 0x426848
dec eax
jne 0x4268fc
cmp dword [esi + 0x14], 8
jb 0x42677f
mov eax, dword [esi]
jmp 0x426781
mov eax, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4267b1
cmp dword [ebp - 0x28], 4
mov ecx, 0xd
cmovne eax, ecx
test eax, eax
setne al
or al, byte [ebp - 0x21]
je 0x4268fc
xor eax, eax
mov dword [ebp - 0x30], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
lea eax, [esi + 0x18]
mov dword [ebp - 0x34], ebx
push eax
call fcn.00421520
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.0045a5f3
add esp, 4
mov ebx, eax
cmp dword [ebp - 0x30], 8
jb 0x426803
push dword [ebp - 0x44]
call fcn.0045a050
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x42681f
mov esi, dword [esi]
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
push eax
push 4
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
jb 0x426850
mov ecx, dword [esi]
mov eax, dword [ebp - 0x48]
add eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push ecx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x426889
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x426885
cmp eax, 2
je 0x426885
mov eax, 0xd
jmp 0x426887
xor eax, eax
test eax, eax
setne al
or al, byte [ebp - 0x21]
je 0x4268fc
cmp byte [esi + 0x30], bl
je 0x4268c8
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00421520
lea ecx, [ebp - 0x20]
call fcn.00428500
add esp, 0x18
mov ebx, 1
jmp 0x4268cb
lea eax, [esi + 0x18]
cmp dword [eax + 0x14], 8
jb 0x4268d3
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x4268db
mov esi, dword [esi]
push 1
push eax
push esi
mov ecx, edi
call fcn.00423ac0
test bl, 1
je 0x4268fc
cmp dword [ebp - 0xc], 8
jb 0x4268fc
push dword [ebp - 0x20]
call fcn.0045a050
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret 4
Function at 0x426910
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47b9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4a8800]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x4a8800]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
push 0xffffffffffffffff
push ecx
mov word [esp + 0x18], cx
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
call fcn.00421520
xor eax, eax
mov dword [esp + 0x58], 0
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.00421520
mov eax, dword [ebp + 0x10]
mov byte [esp + 0x40], al
mov eax, dword [ebp + 0x14]
mov byte [esp + 0x41], al
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x58], 1
push eax
lea ecx, [edi + 0x18]
call fcn.00428c40
cmp dword [esp + 0x3c], 8
jb 0x4269db
push dword [esp + 0x28]
call fcn.0045a050
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
cmp dword [esp + 0x24], 8
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
jb 0x426a05
push dword [esp + 0x10]
call fcn.0045a050
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret 0x14

Function at 0x426d70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x495498
push ecx
lea eax, [ebp - 0x440]
mov esi, edx
push eax
call fcn.0042bb80
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.004605f0
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x426dca
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004605f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
call esi
lea eax, [eax*2 + 2]
cmp eax, 0x20a
jae 0x426eb8
xor ecx, ecx
mov word [ebp + eax - 0x428], cx
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [eax*2 + 2]
cmp eax, 0x20a
jae 0x426eb8
xor ecx, ecx
xorps xmm0, xmm0
mov word [ebp + eax - 0x218], cx
lea eax, [ebp - 0x218]
movdqu xmmword [ebp - 0x45c], xmm0
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x458], eax
mov eax, 0x614
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x460]
push eax
mov dword [ebp - 0x460], ecx
movq qword [ebp - 0x44c], xmm0
mov word [ebp - 0x444], cx
mov dword [ebp - 0x45c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
cmp dword [ebp - 0x42c], 8
jb 0x426ea6
push dword [ebp - 0x440]
call fcn.0045a050
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
call fcn.0045be9e
int3
Function at 0x428380
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, edx
xor edx, edx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 8], esi
lea ecx, [ebx - 2]
mov dword [ebp - 4], edi
test ecx, ecx
jle 0x42843b
dec ecx
mov eax, 0xaaaaaaab
mul ecx
add edi, 4
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [ebp + 8], eax
jmp 0x4283c0
movzx eax, word [edi - 4]
lea edi, [edi + 6]
shr eax, 2
and eax, 0x3f
movzx eax, word [eax*2 + 0x495630]
mov word [esi], ax
movzx ecx, word [edi - 8]
movzx eax, word [edi - 0xa]
and eax, 3
shr ecx, 4
shl eax, 4
and ecx, 0xf
or ecx, eax
movzx eax, word [ecx*2 + 0x495630]
mov word [esi + 2], ax
movzx ecx, word [edi - 8]
movzx eax, word [edi - 6]
and ecx, 0xf
shr eax, 6
and eax, 3
shl ecx, 2
or ecx, eax
movzx eax, word [ecx*2 + 0x495630]
mov word [esi + 4], ax
movzx eax, word [edi - 6]
and eax, 0x3f
movzx eax, word [eax*2 + 0x495630]
mov word [esi + 6], ax
add esi, 8
dec edx
jne 0x4283c0
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 4]
sub ebx, edx
test bl, 2
je 0x4284a9
movzx eax, word [edi + edx*2]
shr eax, 2
and eax, 0x3f
movzx eax, word [eax*2 + 0x495630]
mov word [esi], ax
movzx ecx, word [edi + edx*2 + 2]
movzx eax, word [edi + edx*2]
and eax, 3
shr ecx, 4
shl eax, 4
and ecx, 0xf
or ecx, eax
movzx eax, word [ecx*2 + 0x495630]
mov word [esi + 2], ax
movzx eax, word [edi + edx*2 + 2]
and eax, 0xf
pop edi
movzx eax, word [eax*8 + 0x495630]
mov word [esi + 4], ax
mov eax, 0x3d
mov word [esi + 6], ax
add esi, 8
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, 1
je 0x4284e2
movzx eax, word [edi + edx*2]
shr eax, 2
and eax, 0x3f
movzx eax, word [eax*2 + 0x495630]
mov word [esi], ax
movzx eax, word [edi + edx*2]
and eax, 3
shl eax, 5
movzx eax, word [eax + 0x495630]
mov word [esi + 2], ax
mov dword [esi + 4], 0x3d003d
add esi, 8
xor eax, eax
pop edi
mov word [esi], ax
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42adf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47bde8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4a8800]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4a8800]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x42af46
cmp byte [ebx + 0x46], 0
je 0x42af46
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x42ae5b
xor al, al
jmp 0x42af48
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x42aed3
dec eax
je 0x42aed7
sub eax, 2
je 0x42af2d
xor bl, bl
jmp 0x42af2f
mov byte [ebx + 0x46], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x42af0e
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0045d567
add esp, 0x10
cmp esi, eax
jne 0x42aecf
cmp byte [ebx + 0x46], 0
je 0x42af2d
test esi, esi
jne 0x42ae92
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0042a470
jmp 0x42ae92
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x42af42
push dword [esp + 0x18]
call fcn.0045a050
add esp, 4
mov al, bl
jmp 0x42af48
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
Function at 0x42cdd0
Capabilities:
Check if file exists
Check os version
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47bfeb
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x4a8800]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
mov eax, dword [0x4a8800]
xor eax, esp
push eax
lea eax, [esp + 0x358]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 4]
mov dword [edi], 0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x4acd78]
cmp dword [eax - 8], 0
jne 0x42cfe8
xor eax, eax
push 0x206
push eax
mov word [esp + 0x14c], ax
lea eax, [esp + 0x14e]
push eax
call fcn.0045c460
push 0x114
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.0045c460
add esp, 0x18
mov dword [esp + 0x2c], 0x114
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x30], 6
lea eax, [esp + 0x144]
push 0x104
push eax
jb 0x42ce90
push str._UserProfile_AppDataLocal_
jmp 0x42ce95
push str._UserProfile_Local_SettingsApplication_Data_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x144]
push eax
call esi
lea ecx, [esp + 0x144]
push ecx
push eax
mov ecx, 0x4acd78
call fcn.00423f70
push str.SunnyDroid_
call esi
push str.SunnyDroid_
push eax
call fcn.0042ccb0
push 0x104
mov ecx, 0x4acd78
call fcn.00423df0
mov edx, eax
mov dword [esp + 0x28], 7
xor eax, eax
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [edx], ax
jne 0x42cf01
xor ecx, ecx
jmp 0x42cf15
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cf06
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00422d00
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
setne bl
cmp dword [esp + 0x28], 8
jb 0x42cf4e
push dword [esp + 0x14]
call fcn.0045a050
add esp, 4
test bl, bl
je 0x42cf97
push 0x104
mov ecx, 0x4acd78
call fcn.00423df0
push eax
lea ecx, [esp + 0x18]
call fcn.00422790
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push 0
cmovae eax, dword [esp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esp + 0x28], 8
jb 0x42cf97
push dword [esp + 0x14]
call fcn.0045a050
add esp, 4
push str.log.log
lea ecx, [esp + 0x14]
call fcn.00423bf0
mov dword [esp + 0x360], 0
mov eax, dword [eax]
push eax
push dword [eax - 8]
call fcn.0042ccb0
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4a9c10]
je 0x42cfe8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42cfe8
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
call fcn.0045a610
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x358]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
Function at 0x42e1d0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ebx
mov ebx, ecx
cmp dword [ebx + 0x58], 0
je 0x42e321
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x22c
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.0045c460
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x234], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42e1f2
nop
mov eax, dword [ebx + 0x54]
mov esi, dword [eax]
cmp esi, eax
je 0x42e301
lea ecx, [ecx]
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x42e25b
mov eax, dword [eax]
lea ecx, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42e287
test dx, dx
je 0x42e283
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42e287
add eax, 4
add ecx, 4
test dx, dx
jne 0x42e261
xor eax, eax
jmp 0x42e28c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42e2b8
push dword [ebp - 0x228]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42e2b8
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0xd], 0
jne 0x42e2f8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x42e2dd
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x42e2f8
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x42e2d1
jmp 0x42e2f8
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x42e2f6
cmp esi, dword [eax + 8]
jne 0x42e2f6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x42e2e6
mov esi, eax
cmp esi, dword [ebx + 0x54]
jne 0x42e250
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42e240
jmp 0x42e1f2
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
Function at 0x42f3e0
Capabilities:
Check os version
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c4db
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x330], esi
mov word [esi], ax
mov dword [ebp - 4], eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0045c460
push 0x114
lea eax, [ebp - 0x32c]
push 0
push eax
call fcn.0045c460
add esp, 0x18
mov dword [ebp - 0x32c], 0x114
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x328], 6
lea eax, [ebp - 0x218]
push 0x104
push eax
jb 0x42f48c
push str._UserProfile_AppDataLocal_
jmp 0x42f491
push str._UserProfile_Local_SettingsApplication_Data_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [ebp - 0x218], 0
jne 0x42f4a5
xor ecx, ecx
jmp 0x42f4bf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f4b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00422d00
push 0x12
push str.SunnyDroidlog.log
mov ecx, esi
call fcn.00423270
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret