joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415110
Capabilities:
Hash data using sha1

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
lea eax, [edx + ecx]
lea edi, [esi + 0x20]
mov dword [esi + 4], eax
cmp eax, ecx
jae 0x41512c
inc dword [esi + 8]
mov byte [edx + edi], 0x80
inc dword [esi]
mov ecx, dword [esi]
cmp ecx, 0x38
jbe 0x41516e
mov eax, 0x40
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.00421960
add esp, 8
mov edx, edi
mov ecx, edi
mov dword [esi], 0x40
call fcn.004133b0
add esp, 4
mov ecx, esi
call fcn.004140d0
mov dword [esi], 0
mov ecx, dword [esi]
mov eax, 0x38
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.00421960
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, edx
shr ecx, 0x1d
add esp, 0xc
lea eax, [ecx + eax*8]
mov dword [esi + 8], eax
lea eax, [edx*8]
mov dword [esi + 4], eax
xor edx, edx
mov eax, dword [edi + edx*4]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
inc edx
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [edi + edx*4 - 4], ecx
cmp edx, 0x10
jb 0x4151a3
mov eax, dword [esi + 8]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [edi + 0x3c], eax
call fcn.004140d0
mov eax, dword [esi + 0xc]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
pop edi
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [esi + 0x1c], ecx
movq xmm0, qword [esi + 0xc]
movq qword [ebx], xmm0
movq xmm0, qword [esi + 0x14]
movq qword [ebx + 8], xmm0
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x10], eax
mov dword [esi + 0xc], 0x67452301
mov dword [esi + 0x10], 0xefcdab89
mov dword [esi + 0x14], 0x98badcfe
mov dword [esi + 0x18], 0x10325476
mov dword [esi + 0x1c], 0xc3d2e1f0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
pop ebx
ret
Function at 0x417890
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
or eax, edx
push esi
test al, 3
jne 0x4178d2
lea eax, [edx + 0xc]
lea esi, [ecx + 0xc]
cmp ecx, eax
ja 0x4178c0
cmp esi, edx
jb 0x4178c0
sub edx, ecx
mov esi, 4
mov edi, edi
mov eax, dword [edx + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec esi
jne 0x4178b0
pop esi
ret
movdqu xmm1, xmmword [ecx]
movdqu xmm0, xmmword [edx]
pop esi
pxor xmm1, xmm0
movdqu xmmword [ecx], xmm1
ret
push edi
lea esi, [edx + 2]
sub edx, ecx
mov edi, 4
lea ecx, [ecx]
movzx eax, byte [ecx + edx]
xor byte [ecx], al
movzx eax, byte [esi - 1]
xor byte [ecx + 1], al
movzx eax, byte [esi]
xor byte [ecx + 2], al
movzx eax, byte [esi + 1]
xor byte [ecx + 3], al
lea ecx, [ecx + 4]
lea esi, [esi + 4]
dec edi
jne 0x4178e0
pop edi
pop esi
ret
Function at 0x418b30
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000000
push 1
push 0
mov esi, ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x418b70
mov eax, 0xffffff99
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6be
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x418b96
mov eax, 0xffffff98
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6be
mov esp, ebp
pop ebp
ret
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x20
lea edx, [ebp - 0x24]
lea ecx, [esi + 4]
call fcn.00412840
push pe_nt_image_headers32
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00421960
lea ecx, [ebp - 0x124]
push pe_nt_image_headers32
push ecx
mov edx, ecx
lea ecx, [esi + 4]
call fcn.004128b0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041b6be
mov esp, ebp
pop ebp
ret
Function at 0x41b320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, ecx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [edx + 4]
mov edx, esi
mov eax, edi
and eax, 0xffff0000
shr edx, 0x10
or edx, eax
movzx eax, si
mov ecx, edi
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebx + 0x20]
xor eax, esi
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x24]
xor eax, edx
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x28]
xor eax, edi
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x2c]
xor eax, ecx
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x30]
xor eax, esi
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x34]
xor eax, edx
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x38]
xor eax, edi
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x3c]
xor eax, ecx
mov dword [ebx + 0x80], eax
mov eax, dword [ebx]
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x84], eax
mov esi, 4
lea ecx, [ebx + 0x44]
call fcn.0041b050
dec esi
jne 0x41b3c2
pop edi
pop esi
pop ebx
ret
Function at 0x41b570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x1c], edx
cmp ecx, 0x10
jb 0x41b61b
mov esi, dword [ebp + 8]
shr ecx, 4
lea eax, [ebx + 0x44]
mov dword [ebp - 0x18], ecx
mov ecx, eax
call fcn.0041b050
movzx ecx, word [ebx + 0x5a]
mov eax, dword [ebx + 0x50]
shl eax, 0x10
xor ecx, eax
xor ecx, dword [esi]
add esi, 0x10
xor ecx, dword [ebx + 0x44]
add edi, 0x10
mov dword [edi - 0x10], ecx
movzx ecx, word [ebx + 0x62]
mov eax, dword [ebx + 0x58]
shl eax, 0x10
xor ecx, eax
xor ecx, dword [esi - 0xc]
xor ecx, dword [ebx + 0x4c]
mov dword [edi - 0xc], ecx
movzx ecx, word [ebx + 0x4a]
mov eax, dword [ebx + 0x60]
shl eax, 0x10
xor ecx, eax
xor ecx, dword [esi - 8]
xor ecx, dword [ebx + 0x54]
mov dword [edi - 8], ecx
movzx ecx, word [ebx + 0x52]
mov eax, dword [ebx + 0x48]
shl eax, 0x10
xor ecx, eax
xor ecx, dword [esi - 4]
lea eax, [ebx + 0x44]
xor ecx, dword [ebx + 0x5c]
mov dword [edi - 4], ecx
mov ecx, dword [ebp + 0xc]
sub ecx, 0x10
dec dword [ebp - 0x18]
mov dword [ebp + 0xc], ecx
jne 0x41b5a2
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
jmp 0x41b621
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b6ab
lea ecx, [ebx + 0x44]
call fcn.0041b050
mov edx, dword [ebx + 0x58]
mov edi, dword [ebx + 0x50]
mov eax, edx
shr eax, 0x10
mov ecx, edi
shl ecx, 0x10
xor ecx, eax
xor ecx, dword [ebx + 0x44]
shl edx, 0x10
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x60]
mov eax, ecx
shr eax, 0x10
xor eax, edx
xor eax, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x48]
mov dword [ebp - 0x10], eax
mov eax, edx
shr eax, 0x10
shl ecx, 0x10
xor eax, ecx
xor eax, dword [ebx + 0x54]
shl edx, 0x10
shr edi, 0x10
xor edx, edi
xor edx, dword [ebx + 0x5c]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], edx
test edi, edi
je 0x41b6ab
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
sub ecx, edx
mov dword [ebp - 0x18], ecx
sub esi, edx
lea edx, [ebp - 0x14]
add edx, eax
inc eax
mov cl, byte [ecx + edx]
xor cl, byte [edx]
mov byte [esi + edx], cl
mov ecx, dword [ebp - 0x18]
cmp eax, edi
jb 0x41b696
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041b6be
mov esp, ebp
pop ebp
ret
Function at 0x425eb4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0042230d
mov dword [ebp - 0x14], eax
cmp dword [0x44f760], edi
jne 0x425fa5
push 0x800
push edi
push 0x43952c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x425f32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x426085
push 0x43952c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x426085
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426085
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x44f760], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x44f764], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x44f768], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44f770], eax
test eax, eax
je 0x425fa2
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44f76c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x425fca
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x425fbd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x425fdf
push 4
pop eax
jmp 0x426087
cmp dword [ebp - 0x14], edi
je 0x425fdf
push dword [0x44f760]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x425fc4
mov eax, dword [0x44f76c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x42603d
cmp dword [0x44f770], esi
je 0x42603d
push eax
call ebx
push dword [0x44f770]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42603d
test eax, eax
je 0x42603d
call ecx
test eax, eax
je 0x426032
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x426032
test byte [ebp - 8], 1
jne 0x42603d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x42606d
mov eax, dword [0x44f764]
cmp eax, esi
je 0x42606a
push eax
call ebx
test eax, eax
je 0x42606a
call eax
mov edi, eax
test edi, edi
je 0x42606a
mov eax, dword [0x44f768]
cmp eax, esi
je 0x42606a
push eax
call ebx
test eax, eax
je 0x42606a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x44f760]
call ebx
test eax, eax
je 0x426085
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x426087
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b6be
leave
ret
Function at 0x42edba
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
push edi
mov esi, edx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x200
mov dword [ebp - 4], eax
lea eax, [esi + 0x18]
push edi
push eax
call fcn.0041c740
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [esi + 0x217], bl
cmp eax, 0xffffffff
je 0x42ee49
test al, 0x10
je 0x42ee05
xor eax, eax
inc eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi], eax
mov ebx, eax
jmp 0x42ee49
push ebx
push 0x80
push 4
push ebx
push ebx
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42ee49
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42ee42
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [esi], ebx
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
inc ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4302c8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x43030e
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0043031a
mov dword [0x44fca8], eax
mov eax, dword [ebp - 0x44]
add esp, 0x10
mov dword [0x44fca4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6be
leave
ret

Function at 0x4303a3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jle 0x430430
push esi
push edi
xor edi, edi
cmp byte [ebp - 0x404], 0
lea esi, [ebp - 0x404]
je 0x43042a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x43040c
mov eax, edi
imul eax, eax, 0x58
mov ecx, esi
lea ebx, [eax + 0x452438]
mov edx, ebx
sub edx, esi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4303fd
mov byte [ebx + 0x50], 0xff
inc edi
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x430411
inc esi
sub ecx, edx
add esi, ecx
xor eax, eax
cmp edi, 0x32
cmove esi, eax
cmp byte [esi], al
jne 0x4303e0
pop ebx
mov eax, edi
pop edi
pop esi
jmp 0x430433
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6be
leave
ret
Function at 0x430cf4
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x4554a0
lea eax, [ebp - 0x108]
push str._supgrade.exe
push eax
mov edi, edx
mov ebx, ecx
call fcn.0041b6cd
lea eax, [ebp - 0x108]
push 0x44d938
push eax
call fcn.0041ca67
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x430d5a
mov ecx, str.upgrade:_Cant_write_binary
call fcn.00431ce0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0041b6be
leave
ret
push esi
push edi
push 1
push ebx
call fcn.0041d167
push esi
call fcn.0041dc72
add esp, 0x14
xor edx, edx
mov ecx, str.upgrade:_tmp_binary_written._executing...
call fcn.00431daf
lea ecx, [ebp - 0x108]
call fcn.00431b1e
cmp eax, 0xffffffff
jne 0x430d90
mov ecx, str.Cant_run_upgrade_image
jmp 0x430d43
call fcn.00431679
test eax, eax
jne 0x430da6
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x430db2
xor edx, edx
mov ecx, str.upgrade:_Couldnt_stop_service
call fcn.00431daf
push 0xffffffffffffffff
call fcn.0041e0c6
int3
Function at 0x430dba
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.0043131c
mov ebx, 0x4554a0
mov ecx, ebx
call fcn.004313c0
lea eax, [ebp - 0x20c]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x430e0f
mov ecx, str.uninstall:_Couldnt_obtain_TEMP_path__neccessary_to_perform_uninstall
call fcn.00431ce0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041b6be
leave
ret
mov edx, 0x44d7e4
push esi
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x430e17
push edi
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x430e28
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [0x452408]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x430e46
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x430e56
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
mov edx, str..bat
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x430e73
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x430e83
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x20c]
and ecx, 3
push 0x44d838
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0041ca67
pop ecx
mov esi, eax
pop ecx
pop edi
test esi, esi
jne 0x430ec6
mov ecx, str.uninstall:_Cant_create_uninst.bat
call fcn.00431ce0
or eax, 0xffffffff
pop esi
jmp 0x430e02
push 0x5c
mov dl, 0x2f
mov ecx, ebx
call fcn.00431f71
mov dword [esp], str._echo_off_n
push esi
call fcn.0041cceb
push dword [0x452404]
push str.echo_Uninstalling_R_U_ON_agent__s_..._n
push esi
call fcn.0041cceb
push str.ping__w_1000__n_10_127.0.0.1___NUL_n
push esi
call fcn.0041cceb
push 0x455380
push ebx
push str.del___s_s__n
push esi
call fcn.0041cceb
push ebx
push str.rmdir__q___s__n
push esi
call fcn.0041cceb
push dword [0x452404]
push str.echo_Done._n
push esi
call fcn.0041cceb
add esp, 0x44
push str.ping__w_1000__n_2_127.0.0.1___NUL_n
push esi
call fcn.0041cceb
lea eax, [ebp - 0x20c]
push eax
push str.del__s_n
push esi
call fcn.0041cceb
push esi
call fcn.0041dc72
add esp, 0x18
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x20c]
call fcn.00431b1e
call fcn.00431712
cmp eax, 0xffffffff
jne 0x430f7b
mov ecx, str.Uninstall_service_failed
call fcn.00431ce0
push 0xffffffffffffffff
call fcn.0041e0c6
int3
Function at 0x43131c
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x108]
push eax
push esi
push 2
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x431365
mov edx, eax
mov ecx, str.loadAtStartup:_Failed_openning_registry_key
call fcn.00431cf3
or eax, 0xffffffff
jmp 0x4313b3
push dword [0x452408]
lea eax, [ebp - 0x104]
push str.ruon._s
push eax
call fcn.0041b6cd
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4313a5
mov edx, eax
mov ecx, str.loadAtStartup:_Failed_removing_entry
call fcn.00431cf3
or esi, 0xffffffff
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b6be
leave
ret

Function at 0x431679
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push connect
push 0x44d300
push 0
or edi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4316f8
push ebx
push 0x20
call fcn.00431a1f
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x4316e4
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4316d1
xor edi, edi
jmp 0x4316db
mov ecx, str.ServiceStop:_Sending_stop_signal_failed
call fcn.00431ce0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4316ee
mov ecx, str.ServiceStop:_Cant_open_service__assuming_not_there
call fcn.00431ce0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
jmp 0x431702
mov ecx, str.UninstallService:_Cant_open_the_Service_database
call fcn.00431ce0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041b6be
leave
ret
Function at 0x431712
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push connect
push 0x44d258
push 0
or edi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x43179d
push esi
push 0x10020
call fcn.00431a1f
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x431787
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x431774
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
xor edi, edi
jmp 0x43177e
mov ecx, str.UninstallService:_Service_delete_failed
call fcn.00431ce0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x431793
mov ecx, str.UninstallService:_Cant_open_service__assuming_not_there
call fcn.00431ce0
xor edi, edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
jmp 0x4317a7
mov ecx, 0x44d2cc
call fcn.00431ce0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0041b6be
leave
ret

Function at 0x4317b7
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0x44d198
push 0
mov edi, ecx
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x4318a9
push edi
lea eax, [ebp - 0x404]
push str._s_service
push eax
call fcn.0041b6cd
add esp, 0xc
xor eax, eax
push 0x44f792
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 2
push 0x110
push 0x20000006
call fcn.00431a01
push eax
call fcn.00431a1f
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
je 0x431896
call fcn.004319e3
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x40c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
lea eax, [ebp - 0x408]
push eax
push 1
push edi
mov dword [ebp - 0x408], 0x44d084
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x43187b
call fcn.004319c8
mov esi, eax
jmp 0x43187d
xor esi, esi
test esi, esi
jne 0x43188d
xor edx, edx
mov ecx, str.InstallService:_Agent_Service_installed.
call fcn.00431daf
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4318a0
mov ecx, str.InstallService:_Error_creating_the_Agent_Service_in_the_Service_Database
call fcn.00431ce0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4318b3
mov ecx, str.InstallService:_Cant_open_Service_Database
call fcn.00431ce0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b6be
leave
ret

Function at 0x431a3d
Capabilities:
Create thread

Disassembly:
xor edx, edx
mov ecx, 0x44cf90
call fcn.00431daf
jmp fcn.00431a4e