joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413300
Capabilities:
Hash data using sha256

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 + 0x2c]
mov dword [esi + 4], eax
cmp eax, ecx
jae 0x41331c
inc dword [esi + 8]
mov byte [edx + edi], 0x80
inc dword [esi]
mov ecx, dword [esi]
cmp ecx, 0x38
jbe 0x41335e
mov eax, 0x40
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.00421a80
add esp, 8
mov edx, edi
mov ecx, edi
mov dword [esi], 0x40
call fcn.00412bc0
add esp, 4
mov ecx, esi
call fcn.00412c50
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.00421a80
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 0x413393
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.00412c50
mov eax, dword [esi + 0xc]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
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 eax, dword [esi + 0x20]
mov dword [esi + 0x1c], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x20], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x24], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [esi + 0x28], ecx
movq xmm0, qword [esi + 0xc]
movq qword [ebx], xmm0
movq xmm0, qword [esi + 0x14]
movq qword [ebx + 8], xmm0
movq xmm0, qword [esi + 0x1c]
movq qword [ebx + 0x10], xmm0
movq xmm0, qword [esi + 0x24]
movq qword [ebx + 0x18], xmm0
mov dword [esi + 0xc], 0x6a09e667
mov dword [esi + 0x10], 0xbb67ae85
mov dword [esi + 0x14], 0x3c6ef372
mov dword [esi + 0x18], 0xa54ff53a
mov dword [esi + 0x1c], 0x510e527f
mov dword [esi + 0x20], 0x9b05688c
mov dword [esi + 0x24], 0x1f83d9ab
mov dword [esi + 0x28], 0x5be0cd19
pop edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
pop ebx
ret
Function at 0x4138a0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx + 0xc], 0x67452301
mov dword [ecx + 0x10], 0xefcdab89
mov dword [ecx + 0x14], 0x98badcfe
mov dword [ecx + 0x18], 0x10325476
mov dword [ecx + 0x1c], 0xc3d2e1f0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
ret
Function at 0x414920
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 0x41493c
inc dword [esi + 8]
mov byte [edx + edi], 0x80
inc dword [esi]
mov ecx, dword [esi]
cmp ecx, 0x38
jbe 0x41497e
mov eax, 0x40
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.00421a80
add esp, 8
mov edx, edi
mov ecx, edi
mov dword [esi], 0x40
call fcn.00412bc0
add esp, 4
mov ecx, esi
call fcn.004138e0
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.00421a80
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 0x4149b3
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.004138e0
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 0x417220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x350], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x358], ebx
inc ebx
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp + 0x14]
shr ebx, 1
mov esi, edx
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x354], ecx
cmp ebx, 0x80
ja 0x4173a7
add eax, dword [ebp + 0x1c]
cmp eax, 0x80
ja 0x4173a7
cmp esi, 0xe0
ja 0x4173a7
push esi
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.00421a80
add esp, 0xc
lea eax, [ebp - 0x348]
push esi
push 0
push eax
call fcn.00421a80
add esp, 0xc
lea eax, [ebp - 0x188]
push ebx
push dword [ebp - 0x350]
push eax
call fcn.00422490
mov eax, dword [ebp - 0x358]
mov ecx, dword [ebp - 0x350]
and eax, 1
add esp, 0xc
sub ecx, eax
push ebx
add ecx, ebx
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.00422490
add esp, 0xc
lea eax, [ebp - 0x88]
push dword [ebp - 0x34c]
push dword [ebp - 0x35c]
push eax
call fcn.00422490
mov eax, dword [ebp - 0x34c]
add esp, 0xc
lea ecx, [ebp - 0x88]
push dword [ebp + 0x1c]
add eax, ecx
push dword [ebp - 0x354]
push eax
call fcn.00422490
mov eax, dword [ebp - 0x34c]
add eax, dword [ebp + 0x1c]
add esp, 0xc
mov edx, esi
push 1
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x188]
push ebx
push eax
lea ecx, [ebp - 0x268]
call fcn.004170a0
mov eax, dword [ebp - 0x34c]
add eax, dword [ebp + 0x1c]
add esp, 0x14
mov edx, esi
push 2
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
lea ecx, [ebp - 0x348]
call fcn.004170a0
add esp, 0x14
xor eax, eax
test esi, esi
je 0x4173a7
jmp 0x417390
mov cl, byte [ebp + eax - 0x348]
xor cl, byte [ebp + eax - 0x268]
inc eax
mov byte [eax + edi - 1], cl
cmp eax, esi
jb 0x417390
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b6fe
mov esp, ebp
pop ebp
ret

Function at 0x4178d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
or eax, edx
push esi
test al, 3
jne 0x417912
lea eax, [edx + 0xc]
lea esi, [ecx + 0xc]
cmp ecx, eax
ja 0x417900
cmp esi, edx
jb 0x417900
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 0x4178f0
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 0x417920
pop edi
pop esi
ret
Function at 0x418b70
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x447280]
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 0x418bb0
mov eax, 0xffffff99
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6fe
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 0x418bd6
mov eax, 0xffffff98
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6fe
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.00412050
push 0x100
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00421a80
lea ecx, [ebp - 0x124]
push 0x100
push ecx
mov edx, ecx
lea ecx, [esi + 4]
call fcn.004120c0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041b6fe
mov esp, ebp
pop ebp
ret
Function at 0x41b360
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.0041b090
dec esi
jne 0x41b402
pop edi
pop esi
pop ebx
ret
Function at 0x41b5b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x447280]
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 0x41b65b
mov esi, dword [ebp + 8]
shr ecx, 4
lea eax, [ebx + 0x44]
mov dword [ebp - 0x18], ecx
mov ecx, eax
call fcn.0041b090
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 0x41b5e2
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
jmp 0x41b661
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b6eb
lea ecx, [ebx + 0x44]
call fcn.0041b090
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 0x41b6eb
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 0x41b6d6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041b6fe
mov esp, ebp
pop ebp
ret
Function at 0x425db4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x447280]
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.00422402
mov dword [ebp - 0x14], eax
cmp dword [0x44c520], edi
jne 0x425ea5
push 0x800
push edi
push 0x4392dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x425e32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x425f85
push 0x4392dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x425f85
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x425f85
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x44c520], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x44c524], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x44c528], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44c530], eax
test eax, eax
je 0x425ea2
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44c52c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x425eca
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x425ebd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x425edf
push 4
pop eax
jmp 0x425f87
cmp dword [ebp - 0x14], edi
je 0x425edf
push dword [0x44c520]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x425ec4
mov eax, dword [0x44c52c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x425f3d
cmp dword [0x44c530], esi
je 0x425f3d
push eax
call ebx
push dword [0x44c530]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x425f3d
test eax, eax
je 0x425f3d
call ecx
test eax, eax
je 0x425f32
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 0x425f32
test byte [ebp - 8], 1
jne 0x425f3d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x425f6d
mov eax, dword [0x44c524]
cmp eax, esi
je 0x425f6a
push eax
call ebx
test eax, eax
je 0x425f6a
call eax
mov edi, eax
test edi, edi
je 0x425f6a
mov eax, dword [0x44c528]
cmp eax, esi
je 0x425f6a
push eax
call ebx
test eax, eax
je 0x425f6a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x44c520]
call ebx
test eax, eax
je 0x425f85
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x425f87
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b6fe
leave
ret
Function at 0x42e921
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 + 0x10]
push edi
push eax
call fcn.0041c790
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [esi + 0x20f], bl
cmp eax, 0xffffffff
je 0x42e9b0
test al, 0x10
je 0x42e96c
xor eax, eax
inc eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi], eax
mov ebx, eax
jmp 0x42e9b0
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 0x42e9b0
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42e9a9
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 0x42fd64
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x447280]
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 0x42fdaa
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0042fdb6
mov dword [0x44ca68], eax
mov eax, dword [ebp - 0x44]
add esp, 0x10
mov dword [0x44ca64], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6fe
leave
ret

Function at 0x42fe3f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x447280]
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 0x42fecc
push esi
push edi
xor edi, edi
cmp byte [ebp - 0x404], 0
lea esi, [ebp - 0x404]
je 0x42fec6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x42fea8
mov eax, edi
imul eax, eax, 0x58
mov ecx, esi
lea ebx, [eax + 0x44f1f8]
mov edx, ebx
sub edx, esi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x42fe99
mov byte [ebx + 0x50], 0xff
inc edi
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42fead
inc esi
sub ecx, edx
add esi, ecx
xor eax, eax
cmp edi, 0x32
cmove esi, eax
cmp byte [esi], al
jne 0x42fe7c
pop ebx
mov eax, edi
pop edi
pop esi
jmp 0x42fecf
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6fe
leave
ret
Function at 0x430790
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x4522e0
lea eax, [ebp - 0x108]
push str._supgrade.exe
push eax
mov edi, edx
mov ebx, ecx
call fcn.0041b70d
lea eax, [ebp - 0x108]
push 0x44a8f8
push eax
call fcn.0041cac0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4307f6
mov ecx, str.upgrade:_Cant_write_binary
call fcn.0043177c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0041b6fe
leave
ret
push esi
push edi
push 1
push ebx
call fcn.0041d1c6
push esi
call fcn.0041dcd2
add esp, 0x14
xor edx, edx
mov ecx, str.upgrade:_tmp_binary_written._executing...
call fcn.0043184b
lea ecx, [ebp - 0x108]
call fcn.004315ba
cmp eax, 0xffffffff
jne 0x43082c
mov ecx, str.Cant_run_upgrade_image
jmp 0x4307df
call fcn.00431115
test eax, eax
jne 0x430842
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43084e
xor edx, edx
mov ecx, str.upgrade:_Couldnt_stop_service
call fcn.0043184b
push 0xffffffffffffffff
call fcn.0041e122
int3
Function at 0x430856
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.00430db8
mov ebx, 0x4522e0
mov ecx, ebx
call fcn.00430e5c
lea eax, [ebp - 0x20c]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4308ab
mov ecx, str.uninstall:_Couldnt_obtain_TEMP_path__neccessary_to_perform_uninstall
call fcn.0043177c
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041b6fe
leave
ret
mov edx, 0x44a7a4
push esi
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4308b3
push edi
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4308c4
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [0x44f1c8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4308e2
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4308f2
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 0x43090f
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43091f
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x20c]
and ecx, 3
push 0x44a7f8
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0041cac0
pop ecx
mov esi, eax
pop ecx
pop edi
test esi, esi
jne 0x430962
mov ecx, str.uninstall:_Cant_create_uninst.bat
call fcn.0043177c
or eax, 0xffffffff
pop esi
jmp 0x43089e
push 0x5c
mov dl, 0x2f
mov ecx, ebx
call fcn.004319d8
mov dword [esp], str._echo_off_n
push esi
call fcn.0041cd44
push dword [0x44f1c4]
push str.echo_Uninstalling_R_U_ON_agent__s_..._n
push esi
call fcn.0041cd44
push str.ping__w_1000__n_10_127.0.0.1___NUL_n
push esi
call fcn.0041cd44
push 0x4521c0
push ebx
push str.del___s_s__n
push esi
call fcn.0041cd44
push ebx
push str.rmdir__q___s__n
push esi
call fcn.0041cd44
push dword [0x44f1c4]
push str.echo_Done._n
push esi
call fcn.0041cd44
add esp, 0x44
push str.ping__w_1000__n_2_127.0.0.1___NUL_n
push esi
call fcn.0041cd44
lea eax, [ebp - 0x20c]
push eax
push str.del__s_n
push esi
call fcn.0041cd44
push esi
call fcn.0041dcd2
add esp, 0x18
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x20c]
call fcn.004315ba
call fcn.004311ae
cmp eax, 0xffffffff
jne 0x430a17
mov ecx, str.Uninstall_service_failed
call fcn.0043177c
push 0xffffffffffffffff
call fcn.0041e122
int3