joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 8], eax
cmp dword [esi + 4], 0
jne 0x447872
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
jmp 0x447884
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 4], eax
je 0x447884
mov dword [esi + 4], 0xffffffff
mov eax, dword [ebx]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [esi], 0xffffffff
jne 0x4478b7
mov ecx, dword [ebx]
push 0
push 0x2719
push edi
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4478df
mov ecx, dword [ebx]
push 0
push 0
push edi
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x14
push edi
lea ecx, [ebp - 8]
mov dword [edi + 8], 0
push ecx
mov dword [edi + 0xc], 0
push dword [eax + 4]
mov dword [ebp - 8], 0
push dword [eax]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x44793f
cmp eax, 0x3e5
je 0x44793f
cmp eax, 0xea
je 0x44793f
push dword [ebp - 8]
mov ecx, dword [ebx]
push eax
push edi
call fcn.00413620
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx]
push edi
call fcn.004136a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret 0x14
Function at 0x449b40
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x18], ebx
xor edi, edi
lea esi, [ebx + 0x15]
nop word [eax + eax]
movzx edx, byte [esi - 1]
lea esi, [esi + 4]
movzx eax, byte [esi - 4]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 3]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 2]
shl edx, 8
or edx, eax
mov dword [ebp + edi*4 - 0x158], edx
inc edi
cmp edi, 0x10
jb 0x449b60
lea edx, [ebp - 0x150]
mov esi, 0x40
nop word [eax + eax]
mov eax, dword [edx + 0x2c]
lea edx, [edx + 4]
xor eax, dword [edx + 0x14]
xor eax, dword [edx - 0xc]
xor eax, dword [edx - 4]
mov ecx, eax
add eax, eax
shr ecx, 0x1f
xor ecx, eax
mov dword [edx + 0x34], ecx
sub esi, 1
jne 0x449ba0
mov eax, dword [ebx]
mov edi, eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x10]
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x449be3
mov edi, dword [ebp - 8]
cmp ebx, 0x14
jae 0x449bfd
mov eax, edx
mov dword [ebp - 4], 0x5a827999
not eax
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x449c32
cmp ebx, 0x28
jae 0x449c0b
mov dword [ebp - 4], 0x6ed9eba1
jmp 0x449c2c
cmp ebx, 0x3c
jae 0x449c25
mov eax, esi
mov dword [ebp - 4], 0x8f1bbcdc
or eax, edx
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x449c32
mov dword [ebp - 4], 0xca62c1d6
mov eax, ecx
xor eax, esi
xor eax, edx
mov ecx, dword [ebp - 8]
shr edi, 0x1b
shl ecx, 5
xor edi, ecx
mov ecx, esi
add edi, dword [ebp + ebx*4 - 0x158]
inc ebx
add edi, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 0x10]
add edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov esi, edx
shr edx, 2
shl esi, 0x1e
xor esi, edx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 8], edi
cmp ebx, 0x50
jb 0x449be0
mov eax, dword [ebp - 0x14]
add eax, edi
mov edi, dword [ebp - 0x18]
add dword [edi + 8], esi
add dword [edi + 4], edx
add dword [edi + 0xc], ecx
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
add dword [edi + 0x10], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a280
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aba6b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
test ebx, ebx
jne 0x44a2ef
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x44a2e5
test byte [eax + 0x1c], 1
je 0x44a2e5
cmp byte [eax + 0x19], 1
jb 0x44a2e5
push dword [eax + 0x14]
mov edx, 0x4bf2e8
lea ecx, [ebx + 0xa]
push dword [eax + 0x10]
call fcn.00401a70
add esp, 8
mov eax, 0xfffffffc
jmp 0x44a46e
test edi, edi
jne 0x44a329
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x44a2e5
test byte [eax + 0x1c], 1
je 0x44a2e5
cmp byte [eax + 0x19], 1
jb 0x44a2e5
push dword [eax + 0x14]
mov edx, 0x4bf2e8
lea ecx, [edi + 0xc]
push dword [eax + 0x10]
call fcn.00401a70
add esp, 8
lea eax, [edi - 4]
jmp 0x44a46e
push 0x40
push 0
push edi
call fcn.0047e020
add esp, 0xc
mov dword [ebp - 0x214], 0x40
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x44a390
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x44a388
test byte [eax + 0x1c], 1
je 0x44a388
cmp byte [eax + 0x19], 1
jb 0x44a388
push dword [eax + 0x14]
mov edx, 0x4bf2e8
mov ecx, 0xe
push dword [eax + 0x10]
call fcn.00401a70
add esp, 8
or eax, 0xffffffff
jmp 0x44a46e
mov ecx, dword [ebp - 0x214]
cmp ecx, 0x40
jbe 0x44a3d6
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x44a3ce
test byte [eax + 0x1c], 1
je 0x44a3ce
cmp byte [eax + 0x19], 1
jb 0x44a3ce
push ecx
push 0x40
push dword [eax + 0x14]
mov edx, 0x4bf2e8
mov ecx, 0xf
push dword [eax + 0x10]
call fcn.00401ac0
add esp, 0x10
or eax, 0xffffffff
jmp 0x44a46e
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0044c8b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x218], 8
lea esi, [ebp - 0x22c]
push eax
cmovae esi, dword [ebp - 0x22c]
lea ecx, [ebp - 0x22c]
call fcn.00449360
push ecx
lea ecx, [ebp - 0x244]
push dword [eax]
push esi
call fcn.004441b0
cmp dword [ebp - 0x230], 0x10
lea eax, [ebp - 0x244]
push dword [ebp - 0x214]
cmovae eax, dword [ebp - 0x244]
push eax
push edi
call fcn.0047daa0
add esp, 0xc
lea ecx, [ebp - 0x244]
call fcn.0041e280
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
call fcn.00432c80
mov ecx, ebx
call fcn.0044a490
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret
Function at 0x44a650
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [ecx], 0x1571
mov dword [ecx + 0x9c0], 1
push esi
mov esi, dword [ecx + 0x9c0]
mov edx, dword [ecx + esi*4 - 4]
shr edx, 0x1e
xor edx, dword [ecx + esi*4 - 4]
imul eax, edx, 0x6c078965
add eax, esi
mov dword [ecx + esi*4], eax
inc dword [ecx + 0x9c0]
cmp dword [ecx + 0x9c0], 0x270
jb 0x44a661
mov edx, dword [ecx + 0x9bc]
xor edx, dword [ecx + 0x630]
pop esi
jge 0x44a6ab
xor edx, 0x1908b0df
add edx, edx
or edx, 1
jmp 0x44a6ad
add edx, edx
mov eax, dword [ecx]
xor eax, edx
and eax, 0x7fffffff
xor dword [ecx], eax
xor eax, eax
nop word [eax + eax]
cmp dword [ecx + eax*4], 0
jne 0x44a6d4
inc eax
cmp eax, 0x270
jb 0x44a6c0
mov dword [ecx], connect
ret 4

Function at 0x44a890
Capabilities:
Create new key via cryptacquirecontext

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 0x4abb58
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x34
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 5
push eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
neg eax
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
sbb eax, eax
and dword [ebp - 0x20], eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], eax
cmp ecx, 5
jl 0x44a92d
mov ecx, eax
call fcn.00449eb0
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + ecx*4 - 0x38]
xorps xmm0, xmm0
push 0
inc ecx
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
push eax
mov ecx, esi
movq qword [ebp - 0x40], xmm0
call fcn.0044aa60
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x44a95f
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x44b5c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
sub edi, ebx
jne 0x44b5d8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
cmp edi, 0xffffffff
jne 0x44b5e9
call fcn.0044b860
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret
lea ecx, [edi + 1]
or eax, 0xffffffff
xor edx, edx
div ecx
cmp edx, edi
lea ecx, [eax + 1]
cmovne ecx, eax
mov dword [ebp + 8], ecx
nop
cmp dword [esi + 0x9c0], 0x270
jne 0x44b613
mov ecx, esi
call fcn.0044bcf0
mov eax, dword [esi + 0x9c0]
xor edx, edx
mov ecx, dword [esi + eax*4]
inc eax
mov dword [esi + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
div dword [ebp + 8]
cmp eax, edi
ja 0x44b600
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret
Function at 0x44bcf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor edx, edx
cmp dword [0x4d6b08], 2
push edi
mov edi, ecx
jl 0x44bdac
movaps xmm3, xmmword [0x4bfbc0]
lea ecx, [edx + 0x1b]
movaps xmm4, xmmword [0x4bfbe0]
mov eax, 1
movaps xmm6, xmmword [0x4bfbf0]
mov edx, 0xd8
movaps xmm7, xmmword [0x4bfb80]
movd xmm5, eax
lea eax, [edi + 4]
lea eax, [eax + 0x20]
movups xmm2, xmmword [eax - 0x20]
movups xmm1, xmmword [eax - 0x24]
movaps xmm0, xmm2
pand xmm2, xmm7
pand xmm1, xmm4
pand xmm0, xmm3
por xmm1, xmm0
movups xmm0, xmmword [eax + 0x610]
psrld xmm1, xmm5
pmulld xmm2, xmm6
pxor xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax - 0x24], xmm1
movaps xmm1, xmm4
movups xmm0, xmmword [eax - 0x14]
movups xmm2, xmmword [eax - 0x10]
pand xmm1, xmm0
movaps xmm0, xmm2
pand xmm2, xmm7
pand xmm0, xmm3
por xmm1, xmm0
movups xmm0, xmmword [eax + 0x620]
psrld xmm1, xmm5
pmulld xmm2, xmm6
pxor xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax - 0x14], xmm1
sub ecx, 1
jne 0x44bd33
lea eax, [edi + 4]
mov esi, 0xde
lea eax, [eax + edx*4]
sub esi, edx
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor edx, ecx
and edx, 0x7ffffffe
and ecx, 1
xor edx, dword [eax - 8]
imul ecx, ecx, 0x9908b0df
shr edx, 1
xor edx, ecx
xor edx, dword [eax + 0x62c]
mov dword [eax - 8], edx
sub esi, 1
jne 0x44bdc0
mov esi, dword [edi + 0x37c]
mov eax, esi
mov ecx, dword [edi + 0x378]
and eax, 1
xor ecx, esi
mov edx, dword [edi + 0x380]
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, dword [edi + 0x378]
shr ecx, 1
xor ecx, eax
mov eax, edx
xor ecx, dword [edi + 0x9ac]
and eax, 1
mov dword [edi + 0x378], ecx
mov ecx, esi
xor ecx, edx
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, esi
mov esi, dword [edi + 0x384]
shr ecx, 1
xor ecx, eax
mov eax, esi
xor ecx, dword [edi + 0x9b0]
and eax, 1
mov dword [edi + 0x37c], ecx
mov ecx, esi
xor ecx, edx
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, edx
mov edx, dword [edi + 0x388]
shr ecx, 1
xor ecx, eax
mov eax, edx
xor ecx, dword [edi + 0x9b4]
and eax, 1
mov dword [edi + 0x380], ecx
mov ecx, edx
xor ecx, esi
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, esi
mov esi, 0x18c
shr ecx, 1
xor ecx, eax
mov eax, dword [edi + 0x38c]
xor ecx, dword [edi + 0x9b8]
mov dword [edi + 0x384], ecx
mov ecx, eax
xor ecx, edx
and eax, 1
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, edx
lea edx, [edi + 0x390]
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x9bc]
mov dword [edi + 0x388], ecx
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
mov eax, dword [edx - 4]
xor ecx, eax
and ecx, 0x7ffffffe
and eax, 1
xor ecx, dword [edx - 8]
imul eax, eax, 0x9908b0df
shr ecx, 1
xor ecx, eax
xor ecx, dword [edx - 0x394]
mov dword [edx - 8], ecx
sub esi, 1
jne 0x44bee1
mov ecx, dword [edi + 0x9bc]
mov eax, dword [edi]
xor ecx, eax
and ecx, 0x7ffffffe
mov dword [edi + 0x9c0], esi
xor ecx, dword [edi + 0x9bc]
and eax, 1
imul eax, eax, 0x9908b0df
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x630]
mov dword [edi + 0x9bc], ecx
pop edi
pop esi
ret
Function at 0x451810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4cb060
push 0x47fd10
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4d1088]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00451270
mov edi, eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0xffffffff
test edi, edi
jne 0x451868
xor ecx, ecx
call fcn.004512b0
xor eax, eax
jmp 0x45192b
mov dword [ebp - 4], 0
call fcn.00451340
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, 0xffffffff
je 0x45191a
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x26]
push ecx
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
push str._02u:_02u:_02u__04u_t
push 0x800
push edi
call fcn.004510a0
add esp, 0x1c
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4518b8
sub edx, ecx
push 0
lea eax, [ebp - 0x24]
push eax
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, ebx
call fcn.004512e0
mov ebx, eax
test ebx, ebx
je 0x451901
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4518e2
sub ecx, edx
push 0
lea eax, [ebp - 0x24]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov word [ebp - 0x20], 0xa0d
push 0
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xfffffffe
call fcn.0045194d
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret
Function at 0x451970
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x53b7d0]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
test dword [ebp + 8], eax
je 0x4519d2
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x53b7cc]
ja 0x4519d2
mov edi, 0x53bb08
mov ecx, edi
call fcn.0041e130
call fcn.00451270
mov esi, eax
test esi, esi
jne 0x4519da
mov eax, connect
lock xadd dword [edi], eax
test eax, 0x40000000
jne 0x4519d2
cmp eax, 0x80000000
jle 0x4519d2
lock bts dword [edi], 0x1e
jb 0x4519d2
mov ecx, edi
call fcn.0041e090
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
lea eax, [ebp + 0x20]
push eax
push ecx
push dword [ebp + 0x1c]
push ecx
mov ecx, esi
call fcn.00451fc0
add esp, 0x10
call fcn.00451270
mov edi, eax
test edi, edi
jne 0x451a11
mov ecx, esi
call fcn.004512b0
mov ecx, 0x53bb08
call fcn.0041cff0
xor al, al
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp dword [0x53bad0], 0
jne 0x451a21
mov eax, str.empty
jmp 0x451a34
cmp dword [0x53bad4], 8
mov eax, 0x53bac0
cmovae eax, dword [0x53bac0]
push esi
push dword [ebp + 0x14]
push ebx
push eax
push str.__s_t___S:_d_t___s_n
push 0x800
push edi
call fcn.00451020
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [ebp + 0x18], 0
jne 0x451a63
cmp dword [0x53b7cc], 1
jne 0x451a6a
mov ecx, edi
call fcn.00451810
mov ecx, esi
call fcn.004512b0
mov ecx, edi
call fcn.004512b0
mov ecx, 0x53bb08
call fcn.0041cff0
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
pop ebp
ret
Function at 0x455b00
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac56b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x220], esi
mov word [ebp - 0x230], ax
push 0xf003f
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x455b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x455c8b
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [ebp - 0x218], 0
jne 0x455b8d
xor ecx, ecx
jmp 0x455ba5
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455b96
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00449880
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.SAMSUNG_Mobile_Connectivity_Service_V2
push str.ss_conn_service2
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x455c40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x455c30
test byte [eax + 0x1c], 1
je 0x455c30
cmp byte [eax + 0x19], 3
jb 0x455c30
push esi
push dword [eax + 0x14]
mov edx, 0x4bf6fc
mov ecx, 0x25
push dword [eax + 0x10]
call fcn.00401a90
add esp, 0xc
push esi
push str.CreateService_Failed__08x_n
call fcn.0045da20
add esp, 8
jmp 0x455c84
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x455c77
test byte [eax + 0x1c], 1
je 0x455c77
cmp byte [eax + 0x19], 3
jb 0x455c77
push dword [eax + 0x14]
mov edx, 0x4bf6fc
mov ecx, 0x26
push dword [eax + 0x10]
call fcn.00401a70
add esp, 8
push str.CreateService_Succeed_n
call fcn.0045da20
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x455ca9
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00432cc0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret
Function at 0x455cd0
Capabilities:
Delete service

Disassembly:
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x455d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.OpenSCManager_Failed__08x_n
call fcn.0045da20
add esp, 8
mov eax, esi
pop edi
pop esi
ret
push ebx
push 0xf01ff
push str.ss_conn_service2
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x455d3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.OpenService_Failed__08x_n
call fcn.0045da20
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push edi
call ebx
pop ebx
pop edi
mov eax, esi
pop esi
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x455d72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DeleteService_Failed__08x_n
call fcn.0045da20
add esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push edi
call ebx
pop ebx
pop edi
mov eax, esi
pop esi
ret
push str.DeleteService_Succeed_n
call fcn.0045da20
add esp, 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push edi
call ebx
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x4572f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7cc6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d1088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0047a4e7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0045efda
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret