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

Disassembly:
push 0x158
mov eax, 0x90a26eb
call fcn.0900621d
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x164], eax
xor ebx, ebx
lea eax, [ebp - 0x154]
push eax
mov edi, 0x20019
push edi
push ebx
push str.SOFTWARE
push 0x80000002
mov byte [ebp - 0x13d], bl
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x14c], ebx
call esi
test eax, eax
je 0x9060388
mov dword [ebp - 0x154], ebx
jmp 0x9060557
lea eax, [ebp - 0x148]
push eax
push edi
push ebx
push str.Adobe
push dword [ebp - 0x154]
call esi
test eax, eax
je 0x90603ad
mov dword [ebp - 0x148], ebx
jmp 0x9060557
lea eax, [ebp - 0x150]
push eax
push edi
push ebx
push str.Color
push dword [ebp - 0x148]
call esi
test eax, eax
je 0x90603d2
mov dword [ebp - 0x150], ebx
jmp 0x9060557
lea eax, [ebp - 0x144]
push eax
push edi
push ebx
push str.Monitor
push dword [ebp - 0x150]
call esi
test eax, eax
je 0x90603f7
mov dword [ebp - 0x144], ebx
jmp 0x9060557
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push str.Primary_Monitor
push dword [ebp - 0x144]
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9060452
cmp dword [ebp - 0x15c], 4
jne 0x9060452
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x160], eax
cmp eax, 0x3e7
ja 0x9060557
push dword [ebp - 0x160]
lea eax, [ebp - 0x1c]
push str.Monitor_u
push 0xb
push eax
call fcn.0904e977
add esp, 0x10
lea eax, [ebp - 0x14c]
push eax
push edi
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x144]
call esi
test eax, eax
je 0x90604dc
mov dword [ebp - 0x14c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x144], ebx
je 0x90604a0
push dword [ebp - 0x144]
call esi
cmp dword [ebp - 0x150], ebx
je 0x90604b0
push dword [ebp - 0x150]
call esi
cmp dword [ebp - 0x148], ebx
je 0x90604c0
push dword [ebp - 0x148]
call esi
cmp dword [ebp - 0x154], ebx
je 0x90604d0
push dword [ebp - 0x154]
call esi
mov al, byte [ebp - 0x13d]
call fcn.0900804d
ret
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push str.Monitor_Profile
push dword [ebp - 0x14c]
mov dword [ebp - 0x158], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9060557
cmp dword [ebp - 0x15c], 1
jne 0x9060557
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0905592d
mov ecx, dword [ebp - 0x164]
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 4], ebx
call fcn.0904e977
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.090167a9
mov byte [ebp - 0x13d], 1
cmp dword [ebp - 0x14c], ebx
je 0x906048a
push dword [ebp - 0x14c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
jmp 0x9060490
Function at 0x9063086
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90a2ae1
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13f8
call fcn.0909ea10
mov eax, dword [0x90de124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov eax, dword [esi + 4]
add eax, 0x78
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x13e8], edi
mov dword [ebp - 0x13e4], esi
call fcn.0904e977
cmp dword [edi], 0
pop ecx
pop ecx
jne 0x906310a
mov eax, dword [esi + 4]
push 0
push 0x753
push 0xb71b
push eax
call fcn.0904e977
add esp, 0x10
mov dword [edi], eax
mov ecx, esi
mov dword [ebp - 0x13ec], esi
call fcn.0900e991
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13d8], eax
mov dword [ebp - 0x13d4], 0xc
mov eax, dword [ebp - 0x13d4]
push 0x18
xor edx, edx
pop ecx
div ecx
mov ecx, dword [ebp - 0x13d8]
add dword [ebp - 0x13d4], 0x8000
add dword [ebp - 0x13d8], 2
cmp dword [ebp - 0x13d4], 0xc800c
mov word [ecx], ax
jb 0x906312e
and dword [ebp - 0x13d8], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13e0], eax
jmp 0x906317f
mov edi, dword [ebp - 0x13e8]
mov esi, dword [ebp - 0x13e4]
mov eax, dword [ebp - 0x13e0]
movzx eax, word [eax]
and dword [ebp - 0x13d4], 0
mov dword [ebp - 0x13dc], eax
lea eax, [ebp - 0x13cc]
xor ecx, ecx
mov dx, word [ebp - 0x13dc]
mov word [eax - 2], dx
mov edx, dword [ebp - 0x13d4]
movzx edx, word [ebp + edx*2 - 0x48]
mov word [eax], dx
mov dx, word [ebp + ecx*2 - 0x48]
mov word [eax + 2], dx
inc ecx
add eax, 8
cmp ecx, 0x19
jb 0x906319d
inc dword [ebp - 0x13d4]
cmp dword [ebp - 0x13d4], 0x19
jb 0x906319b
push 0
mov eax, 0x504c4142
push eax
push eax
push 0x271
lea eax, [ebp - 0x13d0]
push eax
push eax
mov ecx, esi
call fcn.0904e977
push 1
push 0x753
push dword [ebp - 0x13d8]
lea ecx, [ebp - 0x1408]
push dword [edi]
call fcn.0904e977
lea ecx, [ebp - 0x1408]
mov byte [ebp - 4], 1
call fcn.09005145
lea edi, [ebp - 0x13d0]
lea esi, [eax + 2]
mov dword [ebp - 0x13dc], 0x19
mov dword [ebp - 0x13d4], 0x19
mov eax, dword [edi]
mov ecx, dword [edi + 4]
shr eax, 0x10
imul eax, eax, 0xff
add eax, 0x4000
shr eax, 0xf
mov byte [esi - 2], al
movzx eax, cx
push eax
mov dword [ebp - 0x13f0], ecx
call fcn.0904e977
mov byte [esi - 1], al
movzx eax, word [ebp - 0x13ee]
push eax
call fcn.0904e977
mov byte [esi], al
pop ecx
add esi, 3
add edi, 8
dec dword [ebp - 0x13d4]
pop ecx
jne 0x906323a
dec dword [ebp - 0x13dc]
jne 0x9063230
lea ecx, [ebp - 0x1408]
mov byte [ebp - 4], 0
call fcn.09005177
add dword [ebp - 0x13d8], 0x753
add dword [ebp - 0x13e0], 2
cmp dword [ebp - 0x13d8], 0xb71b
jb 0x9063173
mov ecx, dword [ebp - 0x13e4]
or dword [ebp - 4], 0xffffffff
call fcn.0904e977
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001690
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x906400a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90a2cd0
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13f8
call fcn.0909ea10
mov eax, dword [0x90de124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
mov eax, dword [edi + 4]
add eax, 0x78
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x13ec], esi
mov dword [ebp - 0x13e4], edi
call fcn.0904e977
cmp dword [esi], 0
pop ecx
pop ecx
jne 0x906408e
mov eax, dword [edi + 4]
push 0
push 0x9c4
push 0xf424
push eax
call fcn.0904e977
add esp, 0x10
mov dword [esi], eax
mov ecx, edi
mov dword [ebp - 0x13f0], edi
call fcn.0900e991
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x13d4], 0xc
mov eax, dword [ebp - 0x13d4]
push 0x18
xor edx, edx
pop esi
div esi
add dword [ebp - 0x13d4], 0x8000
mov word [ecx], ax
add ecx, 2
cmp dword [ebp - 0x13d4], 0xc800c
jb 0x90640ac
and dword [ebp - 0x13dc], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13e0], eax
mov esi, 0x4000
jmp 0x90640f2
mov edi, dword [ebp - 0x13e4]
mov eax, dword [ebp - 0x13e0]
movzx eax, word [eax]
and dword [ebp - 0x13d4], 0
mov dword [ebp - 0x13d8], eax
lea eax, [ebp - 0x13cc]
xor ecx, ecx
mov dx, word [ebp - 0x13d8]
mov word [eax - 2], dx
mov edx, dword [ebp - 0x13d4]
movzx edx, word [ebp + edx*2 - 0x48]
mov word [eax], dx
mov dx, word [ebp + ecx*2 - 0x48]
mov word [eax + 2], dx
inc ecx
add eax, 8
cmp ecx, 0x19
jb 0x9064110
inc dword [ebp - 0x13d4]
cmp dword [ebp - 0x13d4], 0x19
jb 0x906410e
push 0
push 0x434d594b
push 0x50524742
push 0x271
lea eax, [ebp - 0x13d0]
push eax
push eax
mov ecx, edi
call fcn.0904e977
mov eax, dword [ebp - 0x13ec]
push 1
push 0x9c4
push dword [ebp - 0x13dc]
lea ecx, [ebp - 0x1404]
push dword [eax]
call fcn.0904e977
lea ecx, [ebp - 0x1404]
mov byte [ebp - 4], 1
call fcn.09005145
lea ecx, [ebp - 0x13d0]
add eax, 2
mov dword [ebp - 0x13d8], 0x19
mov dword [ebp - 0x13d4], ecx
mov dword [ebp - 0x13e8], 0x19
mov ecx, dword [ebp - 0x13d4]
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
movzx edx, di
imul edx, edx, 0xff
add edx, esi
shr edx, 0xf
mov byte [eax - 2], dl
shr edi, 0x10
mov edx, edi
imul edx, edx, 0xff
add dword [ebp - 0x13d4], 8
add edx, esi
shr edx, 0xf
mov byte [eax - 1], dl
movzx edx, cx
shr ecx, 0x10
imul edx, edx, 0xff
imul ecx, ecx, 0xff
add edx, esi
add ecx, esi
shr edx, 0xf
shr ecx, 0xf
mov byte [eax], dl
mov byte [eax + 1], cl
add eax, 4
dec dword [ebp - 0x13e8]
jne 0x90641bc
dec dword [ebp - 0x13d8]
mov ecx, dword [ebp - 0x13d4]
jne 0x90641ac
lea ecx, [ebp - 0x1404]
mov byte [ebp - 4], 0
call fcn.09005177
add dword [ebp - 0x13dc], 0x9c4
add dword [ebp - 0x13e0], 2
cmp dword [ebp - 0x13dc], 0xf424
jb 0x90640ec
mov ecx, dword [ebp - 0x13e4]
or dword [ebp - 4], 0xffffffff
call fcn.0904e977
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001690
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x90646d5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90a2cd0
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13f8
call fcn.0909ea10
mov eax, dword [0x90de124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
mov eax, dword [edi + 4]
add eax, 0x78
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x13ec], esi
mov dword [ebp - 0x13e4], edi
call fcn.0904e977
cmp dword [esi], 0
pop ecx
pop ecx
jne 0x9064759
mov eax, dword [edi + 4]
push 0
push 0x9c4
push 0xf424
push eax
call fcn.0904e977
add esp, 0x10
mov dword [esi], eax
mov ecx, edi
mov dword [ebp - 0x13f0], edi
call fcn.0900e991
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x13d4], 0xc
mov eax, dword [ebp - 0x13d4]
push 0x18
xor edx, edx
pop esi
div esi
add dword [ebp - 0x13d4], 0x8000
mov word [ecx], ax
add ecx, 2
cmp dword [ebp - 0x13d4], 0xc800c
jb 0x9064777
and dword [ebp - 0x13dc], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13e0], eax
mov esi, 0x4000
jmp 0x90647bd
mov edi, dword [ebp - 0x13e4]
mov eax, dword [ebp - 0x13e0]
movzx eax, word [eax]
and dword [ebp - 0x13d4], 0
mov dword [ebp - 0x13d8], eax
lea eax, [ebp - 0x13cc]
xor ecx, ecx
mov dx, word [ebp - 0x13d8]
mov word [eax - 2], dx
mov edx, dword [ebp - 0x13d4]
movzx edx, word [ebp + edx*2 - 0x48]
mov word [eax], dx
mov dx, word [ebp + ecx*2 - 0x48]
mov word [eax + 2], dx
inc ecx
add eax, 8
cmp ecx, 0x19
jb 0x90647db
inc dword [ebp - 0x13d4]
cmp dword [ebp - 0x13d4], 0x19
jb 0x90647d9
push 0
push 0x434d594b
push 0x504c4142
push 0x271
lea eax, [ebp - 0x13d0]
push eax
push eax
mov ecx, edi
call fcn.0904e977
mov eax, dword [ebp - 0x13ec]
push 1
push 0x9c4
push dword [ebp - 0x13dc]
lea ecx, [ebp - 0x1404]
push dword [eax]
call fcn.0904e977
lea ecx, [ebp - 0x1404]
mov byte [ebp - 4], 1
call fcn.09005145
lea ecx, [ebp - 0x13d0]
add eax, 2
mov dword [ebp - 0x13d8], 0x19
mov dword [ebp - 0x13d4], ecx
mov dword [ebp - 0x13e8], 0x19
mov ecx, dword [ebp - 0x13d4]
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
movzx edx, di
imul edx, edx, 0xff
add edx, esi
shr edx, 0xf
mov byte [eax - 2], dl
shr edi, 0x10
mov edx, edi
imul edx, edx, 0xff
add dword [ebp - 0x13d4], 8
add edx, esi
shr edx, 0xf
mov byte [eax - 1], dl
movzx edx, cx
shr ecx, 0x10
imul edx, edx, 0xff
imul ecx, ecx, 0xff
add edx, esi
add ecx, esi
shr edx, 0xf
shr ecx, 0xf
mov byte [eax], dl
mov byte [eax + 1], cl
add eax, 4
dec dword [ebp - 0x13e8]
jne 0x9064887
dec dword [ebp - 0x13d8]
mov ecx, dword [ebp - 0x13d4]
jne 0x9064877
lea ecx, [ebp - 0x1404]
mov byte [ebp - 4], 0
call fcn.09005177
add dword [ebp - 0x13dc], 0x9c4
add dword [ebp - 0x13e0], 2
cmp dword [ebp - 0x13dc], 0xf424
jb 0x90647b7
mov ecx, dword [ebp - 0x13e4]
or dword [ebp - 4], 0xffffffff
call fcn.0904e977
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001690
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x9095fa0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90a3edd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb18
mov eax, dword [0x90de124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x18]
push eax
mov dword [ebp - 0xb24], eax
call fcn.0904e977
add esp, 4
push eax
lea ecx, [ebp - 0xb20]
call fcn.0904e977
push 0
push 0
mov eax, dword [ebp - 0xb20]
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push eax
push esi
mov dword [ebp - 4], 0
call fcn.09008249
add esp, 0x3c
push eax
lea ecx, [ebp - 0xb1c]
call fcn.0904e977
mov byte [ebp - 4], 1
xor eax, eax
jmp 0x9096050
mov byte [ebp + eax - 0x118], al
inc eax
cmp eax, 0x100
jb 0x9096050
push 0
push 0x5058595a
push 0x67386b30
push pe_nt_image_headers32
lea ecx, [ebp - 0x918]
push ecx
mov ecx, dword [ebp - 0xb1c]
lea edx, [ebp - 0x118]
push edx
call fcn.0904e977
movzx edi, word [ebp - 0x914]
movzx esi, word [ebp - 0x11c]
cmp esi, edi
ja 0x90960a5
push 0x6250726f
call fcn.0904e977
sub esi, edi
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx*8 - 0x914]
cmp eax, edi
ja 0x90960c0
xor eax, eax
jmp 0x90960e9
movzx edx, word [ebp - 0x11c]
cmp eax, edx
jb 0x90960da
mov edx, 0x8000
mov word [ebp + ecx*2 - 0xb18], dx
jmp 0x90960f1
sub eax, edi
mov edx, esi
shr edx, 1
shl eax, 0xf
add eax, edx
xor edx, edx
div esi
mov word [ebp + ecx*2 - 0xb18], ax
inc ecx
cmp ecx, 0x100
jb 0x90960b0
lea ecx, [ebp - 0xb1c]
mov byte [ebp - 4], 0
call fcn.0900ec67
lea ecx, [ebp - 0xb20]
mov dword [ebp - 4], 0xffffffff
call fcn.09019001
mov esi, dword [ebp - 0xb24]
lea eax, [esi + 8]
push eax
push 0x260
mov dword [ebp - 0xb24], eax
call fcn.0904e977
add esp, 8
mov dword [ebp - 0xb20], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x909615b
push esi
mov ecx, eax
call fcn.0904e977
mov esi, eax
mov dword [ebp - 0xb1c], esi
jmp 0x909616b
mov dword [ebp - 0xb1c], 0
mov esi, dword [ebp - 0xb1c]
fld qword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
fmul qword [0x90b4990]
mov ecx, dword [eax]
fldz
mov dword [esi + 0x50], ecx
mov edx, dword [eax + 4]
fcomp st(1)
mov dword [esi + 0x54], edx
fnstsw ax
test ah, 0x41
jne 0x9096195
fsub qword [0x90aad88]
jmp 0x909619b
fadd qword [0x90aad88]
call fcn.0909e870
mov word [esi + 0x58], ax
mov eax, dword [ebp - 0xb1c]
lea edi, [esi + 0x5a]
mov ecx, 0x80
lea esi, [ebp - 0xb18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09001690
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40f3ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40f3d9
pop dword [ebp - 0x20]
mov eax, 0x2db00567
sub eax, 0x2d6f118e
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x453d9
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xb8a0acd7
sub ecx, 0xb8a04748
xor esi, esi
add esi, eax
mov edi, 0x435400
add edi, dword [ebp - 0x20]
mov ebx, 0x6c3e1e21
add ebx, 0x54c85fe4
sub dword [ebp - 4], edi
mov edx, dword [edi]
xor dword [ebp - 0xc], eax
sub edx, ebx
add dword [ebp - 0xc], edi
mov dword [esi], edx
xor dword [ebp - 4], 0xfc5d02ce
add esi, 4
add edi, 0x6ea0ee0
sub edi, 0x6ea0edc
loop 0x40f42f
add eax, 0x1890f
mov ebx, eax
add eax, 0xbf1fdb96
sub eax, 0xbf1fdb91
mov ecx, 0x9b1398e9
add ecx, 0x652c6717
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x29a010be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x29a010cd
pop dword [ebp - 0x24]
mov eax, 0xed7f3b6f
add eax, 0x3c20d55e
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x921611a8
sub dword [ebp - 0x34], 0x43c3cc5d
mov dword [ebp - 0x30], 0xe80a6f77
add dword [ebp - 0x30], 0x4a28dcce
mov dword [ebp - 0x2c], 0xee8784d0
add dword [ebp - 0x2c], 0x5dc4bf5e
mov dword [ebp - 0x28], 0xb8736b86
add dword [ebp - 0x28], 0x478c947a
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x3ca51518
sub dword [ebp - 0x34], 0xc832abc2
mov dword [ebp - 0x30], 0xf536ab23
sub dword [ebp - 0x30], 0xb3ca49ae
mov dword [ebp - 0x2c], 0xab8cecc9
add dword [ebp - 0x2c], 0xb7e27fa3
mov dword [ebp - 0x28], 0x9eb12e8c
sub dword [ebp - 0x28], 0x9eb12e8c
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xad87782b
sub eax, 0x83e6778f
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3aa3f
push 0
call eax
mov ecx, 0x4ccf
mov ebx, eax
mov edi, 0xec2ec4cd
sub edi, 0xc28cd6cd
add edi, dword [ebp - 0x24]
mov edx, 0x13dd16c4
add edx, 0x981d76a3
xor dword [ebp - 0x1c], edi
mov esi, dword [edi]
mov dword [ebp - 0x20], 0xbee7178f
add esi, edx
add dword [ebp - 0x18], eax
mov dword [ebx], esi
add dword [ebp - 0xc], edi
add ebx, 0xd00e1a05
sub ebx, 0xd00e1a01
add edi, 0xbd92defc
sub edi, 0xbd92def8
loop 0x29a011e4
add eax, 0x3e06f630
add eax, 0xc1fa2fdf
mov ebx, eax
add eax, 5
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x29a01815
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x29a169b8]
jne 0x29a0181f
repz ret
jmp fcn.29a0e56f
Function at 0x401dc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x401dce
mov dword [eax], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
test ebp, ebp
push edi
je 0x401de1
mov dword [ebp], 0
mov eax, dword [esp + 0x14]
push 0x41013c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x401fd0
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
add esp, 0xc
test eax, eax
push esi
jne 0x401fc7
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
cmp eax, 1
mov dword [esp + 0x1c], eax
jl 0x401fc6
cmp eax, 0xa00000
jg 0x401fc6
push 0
push 0
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x401fc6
mov ecx, dword [esp + 0x1c]
add ecx, 0x2000
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebx, eax
test ebx, ebx
push esi
je 0x401fc7
mov edx, dword [esp + 0x20]
push edx
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, 1
jge 0x401e9f
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov byte [eax + ebx], 0
mov edi, str.__ECPT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.MSVCRT.dll__strnicmp]
not ecx
dec ecx
push ecx
push str.__ECPT
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x401f2b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401ed6
mov dword [eax], 1
mov edi, str.__ECPT
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x1c]
mov edi, str.__ECPT
not ecx
dec ecx
sub esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x1c]
mov esi, ecx
add esi, ebx
test eax, eax
jle 0x401fbf
mov cl, byte [esi + edx]
sub cl, al
add cl, dl
inc edx
not cl
mov byte [esi + edx - 1], cl
mov eax, dword [esp + 0x1c]
cmp edx, eax
jl 0x401f0e
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
mov edi, str.__TEXT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__TEXT
push ebx
call esi
add esp, 0xc
test eax, eax
je 0x401fbf
test ebp, ebp
je 0x401f55
mov dword [ebp], 1
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
call fcn.00409480
add esp, 0xc
mov ebp, eax
test ebp, ebp
push ebx
jne 0x401f7f
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x20]
add ecx, 0x2000
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x24]
mov ebx, eax
mov edx, ecx
mov esi, ebp
mov edi, ebx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov byte [eax + ebx], 0
call fcn.004094f0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4047c0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebp, ebp
push edi
je 0x4047d3
mov dword [ebp], 0
mov eax, dword [esp + 0x14]
push 0x41013c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x404934
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
add esp, 0xc
test eax, eax
push esi
jne 0x40492b
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
cmp eax, 1
mov dword [esp + 0x18], eax
jl 0x40492a
cmp eax, 0x6400000
jg 0x40492a
push 0
push 0
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x40492a
mov ecx, dword [esp + 0x18]
inc ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebx, eax
test ebx, ebx
push esi
je 0x40492b
mov edx, dword [esp + 0x1c]
push edx
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, 1
jge 0x40488c
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov byte [eax + ebx], 0
mov edi, str.__TEXT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__TEXT
push ebx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x404923
test ebp, ebp
je 0x4048be
mov dword [ebp], 1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
call fcn.00409480
add esp, 0xc
mov ebp, eax
test ebp, ebp
push ebx
jne 0x4048e8
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [esp + 0x1c]
inc edx
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov eax, ecx
mov esi, ebp
mov edi, ebx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov byte [ecx + ebx], 0
call fcn.004094f0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x4050f0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x405120
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x405180
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4051a4
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret