joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4445b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x4cf084]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x444610
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x10], esi
call fcn.00472b40
mov dword [esp + 0x14], eax
test esi, esi
jne 0x4446e4
mov esi, dword [esp + 0xc]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x444653
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x10], esi
call fcn.00472b40
mov dword [esp + 0x14], eax
test esi, esi
jne 0x4446f2
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push ebx
push 0x444500
push 0x10000
push 0
call fcn.0048b3ea
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4446c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x14], eax
call dword [edx]
test edi, edi
je 0x44469d
push edi
call esi
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x4446ab
push eax
call esi
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
call fcn.00472b40
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x444700
test edi, edi
je 0x4446d0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00477136
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.0041b020
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.0041b020
mov edx, str.thread
lea ecx, [esp + 0x10]
call fcn.0041b020
int3
Function at 0x444860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4cf084]
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 0x444892
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
jmp 0x4448a4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 4], eax
je 0x4448a4
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 0x4448d7
mov ecx, dword [ebx]
push 0
push 0x2719
push edi
call fcn.004124a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477136
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4448ff
mov ecx, dword [ebx]
push 0
push 0
push edi
call fcn.004124a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477136
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 0x44495f
cmp eax, 0x3e5
je 0x44495f
cmp eax, 0xea
je 0x44495f
push dword [ebp - 8]
mov ecx, dword [ebx]
push eax
push edi
call fcn.004124a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477136
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx]
push edi
call fcn.00412520
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00477136
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4460f0
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 0x446110
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 0x446150
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 0x446193
mov edi, dword [ebp - 8]
cmp ebx, 0x14
jae 0x4461ad
mov eax, edx
mov dword [ebp - 4], 0x5a827999
not eax
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x4461e2
cmp ebx, 0x28
jae 0x4461bb
mov dword [ebp - 4], 0x6ed9eba1
jmp 0x4461dc
cmp ebx, 0x3c
jae 0x4461d5
mov eax, esi
mov dword [ebp - 4], 0x8f1bbcdc
or eax, edx
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x4461e2
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 0x446190
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 0x446460
Capabilities:
Generate random numbers via winapi
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4cf084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x88], 0x67452301
mov dword [ebp - 0x84], 0xefcdab89
mov dword [ebp - 0x80], 0x98badcfe
mov dword [ebp - 0x7c], 0x10325476
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x78], 0xc3d2e1f0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x4464d9
lea ecx, [ebp - 0x20]
push ecx
push 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0x14
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x88]
call fcn.00446030
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x88]
push 4
lea eax, [ebp - 0x24]
push eax
call fcn.00446030
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x88]
push 4
lea eax, [ebp - 0x24]
push eax
call fcn.00446030
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x88]
call fcn.00446030
push 0
call fcn.0048b4fc
add esp, 4
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x88]
push 8
push eax
call fcn.00446030
push 0x14
push 0x539a44
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x24], 0x539a44
call fcn.00446030
push 4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x88]
call fcn.00446030
call fcn.0048b605
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x88]
push 4
lea eax, [ebp - 0x10]
push eax
call fcn.00446030
call fcn.0048b667
mov dword [ebp - 0x18], eax
call fcn.0048b667
mov dword [ebp - 0x14], eax
call fcn.0048b667
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x88]
push 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.00446030
push 4
call fcn.00477147
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x88]
push 4
push eax
call fcn.00446030
push 4
push dword [ebp - 0x10]
call fcn.00477177
add esp, 8
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x88]
push 4
push eax
call fcn.00446030
push 4
push fcn.0048b667
lea ecx, [ebp - 0x88]
call fcn.00446030
push 0x14
push esi
lea ecx, [ebp - 0x88]
call fcn.00446030
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x88]
call fcn.00446250
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
xor dword [ecx], eax
xor dword [esi], eax
mov eax, dword [ebp - 0x1c]
xor dword [ecx + 4], eax
xor dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
xor dword [ecx + 8], eax
xor dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
xor dword [ecx + 0xc], eax
xor dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
xor dword [ecx + 0x10], eax
mov ecx, dword [ebp - 4]
xor dword [esi + 0x10], eax
xor ecx, ebp
pop esi
call fcn.00477136
mov esp, ebp
pop ebp
ret
Function at 0x447aa0
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 0x447ab8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
cmp edi, 0xffffffff
jne 0x447ac9
call fcn.00447c00
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
mov ecx, dword [esi + 0x9c0]
cmp ecx, 0x270
jne 0x447af9
mov ecx, esi
call fcn.00447f60
mov ecx, dword [esi + 0x9c0]
mov edx, dword [esi + ecx*4]
mov eax, edx
shr eax, 0xb
inc ecx
xor edx, eax
mov dword [esi + 0x9c0], ecx
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
xor edx, edx
div dword [ebp + 8]
cmp eax, edi
ja 0x447ae4
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret
Function at 0x447f60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
cmp dword [0x4d4a90], 2
jl 0x447fe0
movaps xmm3, xmmword [0x4bd5b0]
mov eax, 1
movaps xmm4, xmmword [0x4bd5d0]
movaps xmm6, xmmword [0x4bd5e0]
movaps xmm7, xmmword [0x4bd570]
movd xmm5, eax
movups xmm1, xmmword [ecx + esi*4 + 4]
movups xmm2, xmmword [ecx + esi*4]
movaps xmm0, xmm3
pand xmm0, xmm1
pand xmm2, xmm4
por xmm2, xmm0
movaps xmm0, xmm7
pand xmm0, xmm1
psrld xmm2, xmm5
pmulld xmm0, xmm6
pxor xmm2, xmm0
movups xmm0, xmmword [ecx + esi*4 + 0x634]
pxor xmm2, xmm0
movups xmmword [ecx + esi*4], xmm2
add esi, 4
cmp esi, 0xdc
jb 0x447f91
cmp esi, 0xde
jae 0x448012
mov edx, dword [ecx + esi*4]
mov eax, dword [ecx + esi*4 + 4]
xor edx, eax
and edx, 0x7ffffffe
and eax, 1
xor edx, dword [ecx + esi*4]
imul eax, eax, 0x9908b0df
shr edx, 1
xor edx, eax
xor edx, dword [ecx + esi*4 + 0x634]
mov dword [ecx + esi*4], edx
inc esi
cmp esi, 0xde
jb 0x447fe0
mov edx, dword [ecx + 0x378]
mov esi, dword [ecx + 0x380]
push edi
mov edi, dword [ecx + 0x37c]
xor edx, edi
and edx, 0x7ffffffe
mov eax, edi
xor edx, dword [ecx + 0x378]
and eax, 1
shr edx, 1
imul eax, eax, 0x9908b0df
xor edx, eax
mov eax, esi
xor edx, dword [ecx + 0x9ac]
and eax, 1
mov dword [ecx + 0x378], edx
mov edx, edi
xor edx, esi
imul eax, eax, 0x9908b0df
and edx, 0x7ffffffe
xor edx, edi
mov edi, dword [ecx + 0x384]
shr edx, 1
xor edx, eax
mov eax, edi
xor edx, dword [ecx + 0x9b0]
and eax, 1
mov dword [ecx + 0x37c], edx
mov edx, edi
xor edx, esi
imul eax, eax, 0x9908b0df
and edx, 0x7ffffffe
xor edx, esi
mov esi, dword [ecx + 0x388]
shr edx, 1
xor edx, eax
mov eax, esi
xor edx, dword [ecx + 0x9b4]
and eax, 1
mov dword [ecx + 0x380], edx
mov edx, esi
xor edx, edi
imul eax, eax, 0x9908b0df
and edx, 0x7ffffffe
xor edx, edi
shr edx, 1
pop edi
xor edx, eax
mov eax, dword [ecx + 0x38c]
xor edx, dword [ecx + 0x9b8]
mov dword [ecx + 0x384], edx
mov edx, eax
xor edx, esi
and eax, 1
and edx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor edx, esi
mov esi, 0xe3
shr edx, 1
xor edx, eax
xor edx, dword [ecx + 0x9bc]
mov dword [ecx + 0x388], edx
mov edx, dword [ecx + esi*4]
mov eax, dword [ecx + esi*4 + 4]
xor edx, eax
and edx, 0x7ffffffe
and eax, 1
xor edx, dword [ecx + esi*4]
imul eax, eax, 0x9908b0df
shr edx, 1
xor edx, eax
xor edx, dword [ecx + esi*4 - 0x38c]
mov dword [ecx + esi*4], edx
inc esi
cmp esi, 0x26f
jb 0x448100
mov edx, dword [ecx + 0x9bc]
mov eax, dword [ecx]
xor edx, eax
and edx, 0x7ffffffe
mov dword [ecx + 0x9c0], 0
xor edx, dword [ecx + 0x9bc]
and eax, 1
imul eax, eax, 0x9908b0df
shr edx, 1
pop esi
xor edx, eax
xor edx, dword [ecx + 0x630]
mov dword [ecx + 0x9bc], edx
ret
Function at 0x44d1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4c8ea8
push 0x4788f0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4cf084]
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
xor esi, esi
mov edx, 0x539578
nop dword [eax]
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
sete al
test al, al
jne 0x44d224
inc esi
add edx, 4
cmp edx, 0x539708
jl 0x44d200
xor esi, esi
jmp 0x44d22d
shl esi, 0xc
add esi, 0x4d5578
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], 0xffffffff
test esi, esi
jne 0x44d26d
mov edx, 0x539578
mov ecx, 0x4d5578
mov esi, 0x64
nop word [eax + eax]
test ecx, ecx
jne 0x44d258
xor eax, eax
xchg dword [edx], eax
add ecx, 0x1000
add edx, 4
sub esi, 1
jne 0x44d250
xor eax, eax
jmp 0x44d349
mov dword [ebp - 4], 0
call fcn.0044cc60
mov edi, eax
mov dword [ebp - 0x3c], edi
cmp edi, 0xffffffff
je 0x44d338
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
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
push str.__04u__02u__02u__02u:_02u:_02u._04u_t_
push 0x800
push esi
call fcn.0044c8d0
add esp, 0x28
mov edx, esi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x44d2d0
sub edx, ecx
push 0
lea eax, [ebp - 0x24]
push eax
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, ebx
call fcn.0044cc00
mov ebx, eax
test ebx, ebx
je 0x44d31f
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44d300
sub ecx, edx
push 0
lea eax, [ebp - 0x24]
push eax
push ecx
push ebx
push edi
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 edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xfffffffe
call fcn.0044d36b
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.00477136
mov esp, ebp
pop ebp
ret
Function at 0x44d390
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x539710]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
test dword [ebp + 8], eax
je 0x44d3f2
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x53970c]
ja 0x44d3f2
mov edi, 0x5399e8
mov ecx, edi
call fcn.0041ccd0
call fcn.0044cb90
mov esi, eax
test esi, esi
jne 0x44d3fa
mov eax, connect
lock xadd dword [edi], eax
test eax, 0x40000000
jne 0x44d3f2
cmp eax, 0x80000000
jle 0x44d3f2
lock bts dword [edi], 0x1e
jb 0x44d3f2
mov ecx, edi
call fcn.0041cc40
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.0044d820
add esp, 0x10
call fcn.0044cb90
mov edi, eax
test edi, edi
jne 0x44d431
mov ecx, esi
call fcn.0044cbd0
mov ecx, 0x5399e8
call fcn.0041bab0
xor al, al
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp dword [0x4cfa44], 0
jne 0x44d441
mov eax, str.empty
jmp 0x44d454
cmp dword [0x4cfa48], 8
mov eax, 0x4cfa34
cmovae eax, dword [0x4cfa34]
push esi
push dword [ebp + 0x14]
push ebx
push eax
push str.__s_t___S:_d_t___s
push 0x800
push edi
call fcn.0044c850
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [ebp + 0x18], 0
jne 0x44d483
cmp dword [0x53970c], 1
jne 0x44d48a
mov ecx, edi
call fcn.0044d1c0
mov ecx, esi
call fcn.0044cbd0
mov ecx, edi
call fcn.0044cbd0
mov ecx, 0x5399e8
call fcn.0041bab0
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
pop ebp
ret
Function at 0x451950
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a830b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4cf084]
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 0x4519bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x451ad5
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4519e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00445de0
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 0x451a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x451a7a
test byte [eax + 0x1c], 1
je 0x451a7a
cmp byte [eax + 0x19], 3
jb 0x451a7a
push esi
push dword [eax + 0x14]
mov edx, 0x4bd054
mov ecx, 0x23
push dword [eax + 0x10]
call fcn.00401960
add esp, 0xc
push esi
push str.CreateService_Failed__08x_n
call fcn.00458ab0
add esp, 8
jmp 0x451ace
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x451ac1
test byte [eax + 0x1c], 1
je 0x451ac1
cmp byte [eax + 0x19], 3
jb 0x451ac1
push dword [eax + 0x14]
mov edx, 0x4bd054
mov ecx, 0x24
push dword [eax + 0x10]
call fcn.00401940
add esp, 8
push str.CreateService_Succeed_n
call fcn.00458ab0
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x451b11
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451b07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451b2e
push edx
push ecx
call fcn.00477177
add esp, 8
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.00477136
mov esp, ebp
pop ebp
ret
call fcn.00482289
int3
Function at 0x4523b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a83af
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4cf084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
xor eax, eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 7
mov word [ebx + 0x2c], ax
mov byte [ebp - 4], 2
lea edi, [ebx + 0x48]
mov byte [ebx + 0x44], 0xff
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00477147
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 3
call fcn.00459e9f
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 dword [edi], vtable.boost::io::basic_altstringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x38], 0
mov byte [edi + 0x3c], 0
mov dword [edi + 0x40], 3
mov byte [ebx + 0x90], 0
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 5
test edx, edx
je 0x45257e
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x18], 7
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452520
sub eax, esi
lea ecx, [ebp - 0x2c]
sar eax, 1
push eax
push edx
call fcn.00445de0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.004530e0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x45257e
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x452574
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452594
push edx
push ecx
call fcn.00477177
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00482289
int3