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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], 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 [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x443dc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [ebp - 0x10], esi
call fcn.0045d2b0
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x443e91
mov esi, dword [ebp - 0x14]
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 0x443e08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [ebp - 0x10], esi
call fcn.0045d2b0
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x443e9e
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push 0
push ebx
push 0x443cc0
push 0x10000
push 0
mov dword [ebp - 8], 0
call fcn.0045eb0d
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x443e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov dword [ebp - 0xc], eax
call dword [edx]
test edi, edi
je 0x443e4f
push edi
call esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x443e5c
push eax
call esi
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
call fcn.0045d2b0
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x443eab
test edi, edi
je 0x443e7e
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d315
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [ebp - 0x10]
call fcn.0041a130
mov edx, str.thread.exit_event
lea ecx, [ebp - 0x10]
call fcn.0041a130
mov edx, str.thread
lea ecx, [ebp - 0x10]
call fcn.0041a130
int3
Function at 0x4440f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 4], 0
mov edi, dword [ebp + 0x18]
mov ebx, ecx
mov dword [ebp - 8], eax
jne 0x444122
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
jmp 0x444134
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 4], eax
je 0x444134
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 0x444167
mov ecx, dword [ebx]
push 0
push 0x2719
push edi
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x44418f
mov ecx, dword [ebx]
push 0
push 0
push edi
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x14
push edi
lea ecx, [ebp - 8]
push ecx
mov dword [edi + 8], 0
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_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4441ef
cmp eax, 0x3e5
je 0x4441ef
cmp eax, 0xea
je 0x4441ef
push dword [ebp - 8]
mov ecx, dword [ebx]
push eax
push edi
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx]
push edi
call fcn.004128b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x14
Function at 0x444950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x49b950]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 4], 0
mov edi, dword [ebp + 0x18]
mov ebx, ecx
mov dword [esp + 0x10], eax
jne 0x444987
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
jmp 0x444999
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 4], eax
je 0x444999
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 0x4449cd
mov ecx, dword [ebx]
push 0
push 0x2719
push edi
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0
jne 0x4449f7
mov ecx, dword [ebx]
push 0
push 0
push edi
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x14
push edi
lea ecx, [esp + 0x14]
push ecx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
push dword [eax + 4]
mov dword [esp + 0x1c], 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 0x444a5b
cmp eax, 0x3e5
je 0x444a5b
cmp eax, 0xea
je 0x444a5b
push dword [esp + 0x10]
mov ecx, dword [ebx]
push eax
push edi
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx]
push edi
call fcn.004128b0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x14
Function at 0x446e20
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
xor edi, edi
lea esi, [ebx + 0x15]
movzx edx, byte [esi - 1]
movzx eax, byte [esi]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
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
lea esi, [esi + 4]
cmp edi, 0x10
jb 0x446e36
lea edx, [ebp - 0x150]
mov esi, 0x40
nop
mov eax, dword [edx + 0x2c]
xor eax, dword [edx + 0x18]
lea edx, [edx + 4]
xor eax, dword [edx - 0xc]
xor eax, dword [edx - 4]
mov ecx, eax
shr ecx, 0x1f
add eax, eax
xor ecx, eax
mov dword [edx + 0x34], ecx
dec esi
jne 0x446e70
mov eax, dword [ebx]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov edi, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
xor ebx, ebx
jmp 0x446eb3
mov edi, dword [ebp - 4]
cmp ebx, 0x14
jae 0x446ecd
mov eax, edx
not eax
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
mov dword [ebp - 8], 0x5a827999
jmp 0x446f02
cmp ebx, 0x28
jae 0x446edb
mov dword [ebp - 8], 0x6ed9eba1
jmp 0x446efc
cmp ebx, 0x3c
jae 0x446ef5
mov eax, esi
or eax, edx
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
mov dword [ebp - 8], 0x8f1bbcdc
jmp 0x446f02
mov dword [ebp - 8], 0xca62c1d6
mov eax, ecx
xor eax, esi
xor eax, edx
mov ecx, dword [ebp - 4]
shr edi, 0x1b
shl ecx, 5
xor edi, ecx
add edi, dword [ebp + ebx*4 - 0x158]
mov ecx, esi
add edi, dword [ebp - 8]
inc ebx
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 edx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
cmp ebx, 0x50
jb 0x446eb0
mov eax, dword [ebp - 0x18]
add eax, edi
mov edi, dword [ebp - 0x14]
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 0x447170
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x505b80]
movq xmm0, qword [0x505b70]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
movq qword [ebp - 0x20], xmm0
movq xmm0, qword [0x505b78]
lea eax, [ebp - 0x20]
mov esi, ecx
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0x67452301
mov dword [ebp - 0x7c], 0xefcdab89
mov dword [ebp - 0x78], 0x98badcfe
mov dword [ebp - 0x74], 0x10325476
mov dword [ebp - 0x70], 0xc3d2e1f0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x84], 0x505b70
movq qword [ebp - 0x18], xmm0
call fcn.00446d50
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x80]
call fcn.00446d50
push 0
call fcn.0045eef6
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x14], edx
call fcn.00446d50
call fcn.0045ef6e
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x80]
call fcn.00446d50
call fcn.0045efa4
mov dword [ebp - 0x18], eax
call fcn.0045efa4
mov dword [ebp - 0x14], eax
call fcn.0045efa4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x80]
call fcn.00446d50
mov eax, dword [esi + 0x18]
test eax, eax
je 0x447285
push eax
push 0x14
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.0045f18a
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x80]
call fcn.00446d50
push 4
call fcn.0045d324
add esp, 4
lea ecx, [eax + 4]
push ecx
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x10], eax
call fcn.00446d50
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x80]
call fcn.00446d50
push dword [ebp - 0x10]
call fcn.0045d373
add esp, 4
lea eax, [esi + 0x14]
push eax
push esi
lea ecx, [ebp - 0x80]
call fcn.00446d50
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x80]
call fcn.00446f70
mov ecx, dword [ebp - 0x84]
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.0045d315
mov esp, ebp
pop ebp
ret
Function at 0x447380
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482dfb
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x49b950]
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 0x4473ef
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x4473e5
test byte [eax + 0x1c], 1
je 0x4473e5
cmp byte [eax + 0x19], 1
jb 0x4473e5
push dword [eax + 0x14]
mov edx, 0x48d480
push dword [eax + 0x10]
lea ecx, [ebx + 0xa]
call fcn.00401000
add esp, 8
mov eax, 0xfffffffc
jmp 0x44756e
test edi, edi
jne 0x447429
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x4473e5
test byte [eax + 0x1c], 1
je 0x4473e5
cmp byte [eax + 0x19], 1
jb 0x4473e5
push dword [eax + 0x14]
mov edx, 0x48d480
push dword [eax + 0x10]
lea ecx, [edi + 0xc]
call fcn.00401000
add esp, 8
lea eax, [edi - 4]
jmp 0x44756e
push 0x40
push 0
push edi
call fcn.00463180
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x214], 0x40
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x447490
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x447488
test byte [eax + 0x1c], 1
je 0x447488
cmp byte [eax + 0x19], 1
jb 0x447488
push dword [eax + 0x14]
mov edx, 0x48d480
push dword [eax + 0x10]
mov ecx, 0xe
call fcn.00401000
add esp, 8
or eax, 0xffffffff
jmp 0x44756e
mov ecx, dword [ebp - 0x214]
cmp ecx, 0x40
jbe 0x4474d6
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x4474ce
test byte [eax + 0x1c], 1
je 0x4474ce
cmp byte [eax + 0x19], 1
jb 0x4474ce
push ecx
push 0x40
push dword [eax + 0x14]
mov edx, 0x48d480
push dword [eax + 0x10]
mov ecx, 0xf
call fcn.00401050
add esp, 0x10
or eax, 0xffffffff
jmp 0x44756e
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00448c90
mov dword [ebp - 4], 0
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x248]
lea esi, [ebp - 0x22c]
cmovae esi, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00446c90
push ecx
push dword [eax]
lea ecx, [ebp - 0x244]
push esi
call fcn.00440ce0
cmp dword [ebp - 0x230], 0x10
push dword [ebp - 0x214]
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push eax
push edi
call fcn.0045fe00
add esp, 0xc
lea ecx, [ebp - 0x244]
call fcn.0041c880
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
call fcn.004306c0
mov ecx, ebx
call fcn.00447590
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.0045d315
mov esp, ebp
pop ebp
ret

Function at 0x447740
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 edx, edx, 0x6c078965
add edx, esi
mov dword [ecx + esi*4], edx
inc dword [ecx + 0x9c0]
cmp dword [ecx + 0x9c0], 0x270
jb 0x447751
pop esi
ret 4
Function at 0x447fa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482d1c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49b950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi + 0x28], 0x48d944
mov dword [edi + 0x30], vtable.boost::exception_detail::clone_base.0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.0045daa1
mov dword [edi], vtable.boost::bad_lexical_cast.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ebx, [esi + 0x14]
lea esi, [edi + 0x14]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
test ecx, ecx
je 0x44802d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 2
mov eax, dword [edi + 0x28]
mov dword [edi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.2.0
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.1.0
mov eax, dword [eax + 4]
push ebx
mov dword [eax + edi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.0
mov eax, dword [edi + 0x28]
push esi
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x24], eax
call fcn.0041b9a0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4482f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482d1c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49b950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi + 0x28], 0x48d944
mov dword [edi + 0x30], vtable.boost::exception_detail::clone_base.0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.0045daa1
mov dword [edi], vtable.boost::bad_lexical_cast.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ebx, [esi + 0x14]
lea esi, [edi + 0x14]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
test ecx, ecx
je 0x44837d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 2
mov eax, dword [edi + 0x28]
mov dword [edi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.2.0
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.1.0
mov eax, dword [eax + 4]
push ebx
mov dword [eax + edi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.0
mov eax, dword [edi + 0x28]
push esi
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x24], eax
call fcn.0041b9a0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4483e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov dword [ebp - 0xc], esi
mov edi, ecx
sub ebx, esi
jne 0x448400
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xffffffff
jne 0x448413
call fcn.004488c0
pop edi
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jbe 0x44848a
xor ecx, ecx
lea eax, [ebx + 1]
xor edx, edx
div ecx
mov dword [ebp - 4], 0
mov esi, 1
mov ecx, eax
mov dword [ebp + 8], ecx
nop
cmp ecx, 1
jae 0x448460
mov byte [ebp - 8], 0
push dword [ebp - 8]
xor edx, edx
push ebx
mov ecx, edi
call fcn.004483e0
mov ecx, dword [ebp + 8]
add esp, 8
cmp eax, 0xffffffff
ja 0x448430
cmp eax, ebx
ja 0x448430
add eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004488c0
imul eax, esi
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, ebx
sub eax, esi
inc eax
neg esi
mov dword [ebp - 4], ecx
cmp esi, eax
je 0x448481
xor esi, esi
jmp 0x448460
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
xor edx, edx
lea ecx, [ebx + 1]
div ecx
mov dword [ebp + 8], eax
cmp edx, ebx
jne 0x4484a0
inc eax
mov dword [ebp + 8], eax
nop
cmp dword [edi + 0x9c0], 0x270
jne 0x4484b3
mov ecx, edi
call fcn.00448910
mov eax, dword [edi + 0x9c0]
inc eax
mov ecx, dword [edi + eax*4 - 4]
mov dword [edi + 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
xor edx, edx
div dword [ebp + 8]
cmp eax, ebx
ja 0x4484a0
pop edi
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448910
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, 0xde
lea eax, [edi + 4]
lea esp, [esp]
mov edx, dword [eax]
mov ecx, dword [eax - 4]
xor ecx, edx
and edx, 1
imul edx, edx, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, dword [eax - 4]
lea eax, [eax + 4]
shr ecx, 1
xor ecx, edx
xor ecx, dword [eax + 0x62c]
mov dword [eax - 8], ecx
dec esi
jne 0x448920
mov edx, dword [edi + 0x37c]
mov ecx, dword [edi + 0x378]
xor ecx, edx
mov esi, dword [edi + 0x380]
and ecx, 0x7ffffffe
xor ecx, dword [edi + 0x378]
mov eax, edx
and eax, 1
shr ecx, 1
imul eax, eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [edi + 0x9ac]
mov eax, esi
mov dword [edi + 0x378], ecx
and eax, 1
imul eax, eax, 0x9908b0df
mov ecx, edx
xor ecx, esi
and ecx, 0x7ffffffe
xor ecx, edx
mov edx, dword [edi + 0x384]
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x9b0]
mov eax, edx
mov dword [edi + 0x37c], ecx
and eax, 1
imul eax, eax, 0x9908b0df
mov ecx, edx
xor ecx, esi
and ecx, 0x7ffffffe
xor ecx, esi
mov esi, dword [edi + 0x388]
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x9b4]
mov eax, esi
mov dword [edi + 0x380], ecx
and eax, 1
imul eax, eax, 0x9908b0df
mov ecx, esi
xor ecx, edx
and ecx, 0x7ffffffe
xor ecx, edx
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x9b8]
lea edx, [edi + 0x390]
mov dword [edi + 0x384], ecx
mov ecx, dword [edi + 0x38c]
mov eax, ecx
and ecx, 1
xor eax, esi
imul ecx, ecx, 0x9908b0df
and eax, 0x7ffffffe
xor eax, esi
shr eax, 1
xor eax, ecx
xor eax, dword [edi + 0x9bc]
mov esi, 0x18c
mov dword [edi + 0x388], eax
lea ecx, [ecx]
mov ecx, dword [edx]
mov eax, dword [edx - 4]
xor eax, ecx
and ecx, 1
imul ecx, ecx, 0x9908b0df
and eax, 0x7ffffffe
xor eax, dword [edx - 4]
lea edx, [edx + 4]
shr eax, 1
xor eax, ecx
xor eax, dword [edx - 0x394]
mov dword [edx - 8], eax
dec esi
jne 0x448a40
mov eax, dword [edi]
mov ecx, dword [edi + 0x9bc]
xor ecx, eax
and eax, 1
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, dword [edi + 0x9bc]
mov dword [edi + 0x9c0], esi
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x630]
mov dword [edi + 0x9bc], ecx
pop edi
pop esi
ret
Function at 0x450f60
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4838db
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x49b950]
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
xor eax, eax
mov dword [ebp - 0x21c], 7
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 0x450fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4510eb
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [ebp - 0x218], 0
jne 0x450fed
xor ecx, ecx
jmp 0x451005
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450ff6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004468a0
cmp dword [ebp - 0x21c], 8
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.SAMSUNG_Mobile_Connectivity_Service
push str.ss_conn_service
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x4510a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x451090
test byte [eax + 0x1c], 1
je 0x451090
cmp byte [eax + 0x19], 3
jb 0x451090
push esi
push dword [eax + 0x14]
mov edx, 0x48daf0
push dword [eax + 0x10]
mov ecx, 0x25
call fcn.0041cd90
add esp, 0xc
push esi
push str.CreateService_Failed__08x_n
call fcn.0045f9b3
add esp, 8
jmp 0x4510e4
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x4510d7
test byte [eax + 0x1c], 1
je 0x4510d7
cmp byte [eax + 0x19], 3
jb 0x4510d7
push dword [eax + 0x14]
mov edx, 0x48daf0
push dword [eax + 0x10]
mov ecx, 0x26
call fcn.00401000
add esp, 8
push str.CreateService_Succeed_n
call fcn.0045f9b3
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x21c], 8
jb 0x451102
push dword [ebp - 0x230]
call fcn.0045d373
add esp, 4
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.0045d315
mov esp, ebp
pop ebp
ret