joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7e6f197e
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x78e667ef
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x41c0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b3af4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41c18c
cmp byte [esi + 0x3d], 0
je 0x41c18c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41c17a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x41c141
sub eax, 1
je 0x41c145
sub eax, 2
jne 0x41c17a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004762da
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41c163
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x41c17a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004762da
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004762da
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004762da
mov esp, ebp
pop ebp
ret
Function at 0x41e680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x41e6a1
jl 0x41e697
test esi, esi
jne 0x41e6a1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x41e6b8
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x41e6f4
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov edi, dword [ebp + 8]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add edi, esi
add esp, 0xc
mov dword [ebp + 8], edi
mov ecx, ebx
mov edi, dword [ebp + 0xc]
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x41e768
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x41e71c
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x41e756
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x41e768
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x41e730
test ecx, ecx
je 0x41e768
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
pop ebp
ret 0xc
Function at 0x41e780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41e7a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x41e810
jg 0x41e7cb
test esi, esi
je 0x41e810
test ecx, ecx
jl 0x41e84a
jg 0x41e7d5
test eax, eax
je 0x41e84a
cmp edi, ecx
jg 0x41e7e5
jl 0x41e7df
cmp esi, eax
jae 0x41e7e5
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x41e837
jg 0x41e81d
test esi, esi
je 0x41e837
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x41e837
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x41e81d
Function at 0x4243d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47900d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b3af4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], Ordinal_5
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x28], vtable.SignalIn_enum_DecoderSignals_.0
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0
mov dword [esi], vtable.AIS::Decoder.0
mov dword [esi + 0x28], vtable.AIS::Decoder.1.0
mov byte [esi + 0x2c], 0x3f
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0x400
mov dword [esi + 0x38], 4
mov byte [esi + 0x3c], 1
mov dword [esi + 0x40], 0
mov word [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
call fcn.00425180
mov dword [esi + 0x120], 0
mov eax, esi
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424560
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4790fe
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b3af4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], vtable.Setting.0
mov dword [esi], vtable.IO::HTTP.0
mov dword [esi + 0x10], vtable.IO::HTTP.1.0
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], vtable.AIS::Filter.0
mov dword [esi + 0x24], 0xffffffe
mov dword [esi + 0x28], 0xffffffe
mov byte [esi + 0x2c], 0
movups xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov byte [esi + 0x30], 0
mov dword [ebp - 4], 0
movq qword [esi + 0x48], xmm0
lea eax, [esi + 0x54]
mov word [esi + 0x50], 0
push 2
push eax
call sub.MSVCP140.dll__Mtx_init_in_situ
mov dword [esi + 0x84], 0x1000
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
xorps xmm0, xmm0
movups xmmword [esi + 0xcc], xmm0
mov dword [esi + 0xdc], 0
mov dword [esi + 0xe0], 0xf
mov byte [esi + 0xcc], 0
movups xmmword [esi + 0xe4], xmm0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0xf
mov byte [esi + 0xe4], 0
movups xmmword [esi + 0xfc], xmm0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0xf
mov byte [esi + 0xfc], 0
movups xmmword [esi + 0x114], xmm0
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0xf
mov byte [esi + 0x114], 0
mov word [esi + 0x12c], 0x100
mov dword [esi + 0x130], 0x3c
mov dword [esi + 0x134], 0xa
mov dword [esi + 0x138], 0
mov dword [esi + 0x13c], 0
movups xmmword [esi + 0x140], xmm0
mov dword [esi + 0x150], 0
mov dword [esi + 0x154], 0xf
mov byte [esi + 0x140], 0
movups xmmword [esi + 0x158], xmm0
mov dword [esi + 0x168], 0
mov dword [esi + 0x16c], 0xf
mov byte [esi + 0x158], 0
movups xmmword [esi + 0x170], xmm0
mov dword [esi + 0x180], 0
mov dword [esi + 0x184], 0xf
mov byte [esi + 0x170], 0
movups xmmword [esi + 0x188], xmm0
mov dword [esi + 0x198], 0
mov dword [esi + 0x19c], 0xf
mov byte [esi + 0x188], 0
movups xmmword [esi + 0x1a0], xmm0
mov dword [esi + 0x1b0], 0
mov dword [esi + 0x1b4], 0xf
mov byte [esi + 0x1a0], 0
movups xmmword [esi + 0x1b8], xmm0
mov dword [esi + 0x1c8], 0
mov dword [esi + 0x1cc], 0xf
mov byte [esi + 0x1b8], 0
mov dword [esi + 0x5d0], 0
movups xmmword [esi + 0x5d4], xmm0
mov dword [esi + 0x5e4], 0xe
mov dword [esi + 0x5e8], 0xf
movq xmm0, qword [str.jsonaiscatcher]
movq qword [esi + 0x5d4], xmm0
mov eax, dword [0x4899b4]
mov dword [esi + 0x5dc], eax
mov ax, word [0x4899b8]
mov word [esi + 0x5e0], ax
mov byte [esi + 0x5e2], 0
push 0x20
mov byte [ebp - 4], 0xe
mov dword [esi + 0x5ec], 0
mov dword [esi + 0x5f0], 0
call fcn.0047604b
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x5ec], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x426e20
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4793b2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4b3af4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 0xc], 0xffffffff
mov dword [ecx + 0x10], vtable.Setting.0
mov dword [ecx], vtable.IO::PostgreSQL.0
mov dword [ecx + 0x10], vtable.IO::PostgreSQL.1.0
mov dword [ecx + 0x14], 0x4b4f80
mov dword [ecx + 0x18], 0
movups xmmword [ecx + 0x1c], xmm0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0xf
mov byte [ecx + 0x1c], 0
lea edi, [ecx + 0x38]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], edi
lea ecx, [edi + 0x68]
mov dword [edi], 0x489cc8
mov dword [edi + 0x10], 0x489cd0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea esi, [edi + 0x18]
mov byte [ebp - 4], 1
push esi
mov ecx, edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov eax, dword [edi]
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov esi, dword [ebp - 0x14]
mov dword [esi + 0xe8], vtable.AIS::Filter.0
mov dword [esi + 0xec], 0xffffffe
mov dword [esi + 0xf0], 0xffffffe
mov byte [esi + 0xf4], 0
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0xa
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
xorps xmm0, xmm0
mov dword [esi + 0x118], 0x1000000
movups xmmword [esi + 0x11c], xmm0
mov dword [esi + 0x12c], 0xa
mov dword [esi + 0x130], 0xf
movq xmm0, qword [str.dbnameais]
movq qword [esi + 0x11c], xmm0
xorps xmm0, xmm0
mov ax, word [0x489cf8]
mov word [esi + 0x124], ax
lea eax, [esi + 0x140]
mov byte [esi + 0x126], 0
push 2
movq qword [esi + 0x134], xmm0
push eax
mov word [esi + 0x13c], 0
call sub.MSVCP140.dll__Mtx_init_in_situ
add esp, 8
mov dword [esi + 0x170], 0
mov dword [esi + 0x174], 0xa
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x448a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c0fd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b3af4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x10
call fcn.0047604b
mov edx, eax
add esp, 4
test edx, edx
je 0x448ade
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
jmp 0x448ae0
xor edx, edx
mov dword [ebp + 0xc], edx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push edx
push 0x423760
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x448b1e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [edi], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x44a4d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c2ed
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b3af4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
cvttss2si eax, dword [ebp + 8]
push 1
push dword [ebx + 0x68]
lea eax, [eax + eax*4]
add eax, eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.rtlsdr.dll_rtlsdr_set_tuner_gain_mode]
add esp, 8
test eax, eax
jne 0x44a685
push eax
push dword [ebx + 0x68]
call dword [sym.imp.rtlsdr.dll_rtlsdr_get_tuner_gains]
add esp, 8
test eax, eax
jg 0x44a53b
push str.RTLSDR:_no_gains_available
jmp 0x44a68a
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
cmp eax, 0x3fffffff
ja 0x44a6a0
lea esi, [eax*4]
cmp esi, 0x1000
jb 0x44a591
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x44a6a5
push eax
call fcn.0047604b
add esp, 4
test eax, eax
je 0x44a661
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x44a5a4
test esi, esi
je 0x44a5a2
push esi
call fcn.0047604b
add esp, 4
mov edi, eax
jmp 0x44a5a4
xor edi, edi
push esi
push 0
lea ebx, [esi + edi]
mov dword [ebp + 8], edi
push edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x1c]
push edi
mov dword [ebp - 4], 0
push dword [eax + 0x68]
call dword [sym.imp.rtlsdr.dll_rtlsdr_get_tuner_gains]
mov eax, dword [edi]
add esp, 0x14
mov dword [ebp - 0x10], eax
mov ecx, edi
mov dword [ebp - 0x18], edi
cmp edi, ebx
je 0x44a617
mov edi, eax
mov esi, dword [ecx]
mov eax, esi
sub eax, dword [ebp - 0x14]
cdq
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor ecx, edx
sub eax, edi
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
mov ecx, dword [ebp - 0x18]
cmovge esi, edi
add ecx, 4
mov dword [ebp - 0x18], ecx
mov edi, esi
cmp ecx, ebx
jne 0x44a5e3
mov dword [ebp - 0x10], edi
mov eax, esi
mov edi, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x68]
call dword [sym.imp.rtlsdr.dll_rtlsdr_set_tuner_gain]
add esp, 8
test eax, eax
je 0x44a642
push str.RTLSDR:_cannot_set_tuner_gain.
lea ecx, [ebp - 0x34]
call fcn.004160f0
push 0x493c0c
lea eax, [ebp - 0x34]
jmp 0x44a69a
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x44a667
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44a667
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push edi
call fcn.0047607b
add esp, 8
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
push str.RTLSDR:_cannot_set_gain_mode.
lea ecx, [ebp - 0x28]
call fcn.004160f0
push 0x493c0c
lea eax, [ebp - 0x28]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.0041c360
call fcn.0041c1b0
int3
Function at 0x44b3d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c42d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b3af4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi + 0xe0], 0x40000
lea ecx, [edi + 0x84]
mov dword [edi + 0xe4], 8
xor eax, eax
mov dword [edi + 0x80], 0
mov dword [edi + 0x7c], 0
xchg dword [ecx], eax
mov esi, dword [edi + 0xe4]
imul esi, dword [edi + 0xe0]
mov eax, dword [edi + 0x74]
mov ecx, eax
mov edx, dword [edi + 0x70]
sub ecx, edx
mov dword [ebp - 0x14], eax
cmp esi, ecx
jae 0x44b44c
lea eax, [edx + esi]
jmp 0x44b47b
jbe 0x44b47e
mov eax, dword [edi + 0x78]
sub eax, edx
cmp esi, eax
jbe 0x44b466
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [edi + 0x70]
call fcn.00448060
jmp 0x44b47e
sub esi, ecx
push esi
push 0
push dword [ebp - 0x14]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, esi
mov dword [edi + 0x74], eax
mov eax, dword [edi + 0x5c]
push edi
movd xmm0, eax
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x48a7e0]
mov eax, dword [edi + 0x158]
mov eax, dword [eax]
movsd qword [eax + 8], xmm0
mov eax, dword [edi + 0x15c]
mov dword [eax + 4], 0
mov eax, dword [edi + 0x15c]
mov byte [eax + 0x4a], 0
mov eax, dword [edi + 0x15c]
mov byte [eax + 0x4b], 1
mov eax, dword [edi + 0x15c]
mov byte [eax + 0x4c], 1
mov eax, dword [edi + 0x15c]
mov dword [eax], 0xc8
mov eax, dword [edi + 0x60]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x48a7e0]
mov eax, dword [edi + 0x15c]
movsd qword [eax + 0x28], xmm0
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x150]
mov dword [ebp - 0x28], 0x44be30
mov dword [ebp - 0x20], 0x44bdf0
call dword [sym.imp.sdrplay_api.dll_sdrplay_api_Init]
add esp, 0xc
test eax, eax
jne 0x44b5b4
push 0x10
mov byte [edi + 0x50], 1
call fcn.0047604b
add esp, 4
test eax, eax
je 0x44b549
mov dword [eax], edi
mov dword [eax + 8], 0x44b5d0
mov dword [eax + 0xc], 0
jmp 0x44b54b
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x423760
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x44b5a6
cmp dword [edi + 0x6c], 0
je 0x44b583
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x18]
push 0xa
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x18], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push str.SDRPLAY:_cannot_start_device
lea ecx, [ebp - 0x34]
call fcn.004160f0
push 0x493c0c
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3