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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x695e98]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a13de
cmp word [esi], dx
jne 0x4a13de
or byte [edi + eax + 0x28], 4
jmp 0x4a13e3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a1536
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a1516
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a1425
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a145b
cmp eax, edx
jae 0x4a1467
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a13fd
jmp 0x4a1536
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1512
cmp dword [ebp - 0x14], 0
je 0x4a1512
mov eax, dword [ebx*4 + 0x695e98]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a14ea
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a14b3
mov word [esi], cx
jmp 0x4a14e6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x695e98]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x695e98]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x695e98]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a1536
pop ebx
cmp word [ebp - 4], bx
jne 0x4a14fb
cmp esi, dword [ebp + 0xc]
jne 0x4a14fb
mov word [esi], bx
jmp 0x4a1533
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a1536
push 0xd
jmp 0x4a152f
mov ecx, dword [ebx*4 + 0x695e98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a152d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a1536
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4024d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
sub ebx, ebx
imul edx, dword [ebx + 0x406008], 0x8088405
inc edx
mov dword [ebx + 0x406008], edx
mul edx
push edx
pop eax
pop ebx
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, reloc.kernel32.dll_GetCurrentProcess
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x65d5110b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4cf21715
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x405f41
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdd4], 0
push esi
jne 0x405f78
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f52
mov dword [ecx*4 + 0x42bdd0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f4d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fa9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdd0]
xor eax, esi
inc ecx
dec edx
jne 0x405f8b
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407de0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x407e04
jmp 0x407e0e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407df4
mov esp, ebp
pop ebp
ret

Function at 0x40917b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40919b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040bb7e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4091bc
test byte [esp + 8], 2
je 0x4091bc
mov dword [0x418f10], 0xd
mov dword [0x418f14], 5
jmp 0x409197
xor eax, eax
ret

Function at 0x40b48d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4118a0
cmp edx, dword [eax]
je 0x40b4af
add eax, 8
inc ecx
cmp eax, 0x411930
jl 0x40b4a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4118a0]
jne 0x40b5dd
mov eax, dword [0x418f64]
cmp eax, 1
je 0x40b5b7
test eax, eax
jne 0x40b4e0
cmp dword [0x411328], 1
je 0x40b5b7
cmp edx, 0xfc
je 0x40b5dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b517
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407f60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004080b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b55a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004080b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4104fc
push edi
call fcn.00408c30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407f60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407f70
lea eax, [ebp - 0xa0]
push 0x4104dc
push eax
call fcn.00407f70
push dword [esi + 0x4118a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407f70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040df55
add esp, 0x2c
pop edi
jmp 0x40b5dd
lea eax, [ebp + 8]
lea esi, [esi + 0x4118a4]
push 0
push eax
push dword [esi]
call fcn.004080b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x495cd2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x537b34]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x495d1d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00496194
test al, al
jne 0x495d17
sub edx, 2
cmp edx, edi
jne 0x495cfd
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x495d3f
lea eax, [edi + 2]
cmp edx, eax
je 0x495d3f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004958cb
add esp, 0x10
jmp 0x495e39
push esi
lea ecx, [ebp - 0x255]
call fcn.00496194
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x495d82
push dword [ebp - 0x25c]
jmp 0x495d2f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x495dbf
cmp word [ebp - 0x226], 0
je 0x495de0
cmp word [ebp - 0x226], ax
jne 0x495dbf
cmp word [ebp - 0x224], 0
je 0x495de0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004958cb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x495e2c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x495d99
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x495e14
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x495e39
push 0x4952b3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405754
add esp, 0x10
jmp 0x495e09
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x4a18e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ded
mov eax, dword [0x537b34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004060f0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a192a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a1a86
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406258
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x53b790]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403355
mov ecx, dword [esi*4 + 0x53b790]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a1a7f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a1a7f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1a7f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403355
add esp, 0x14
test edx, edx
jl 0x4a1a7f
jg 0x4a19f5
test eax, eax
jb 0x4a1a7f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1a7f
jl 0x4a1a0f
cmp dword [ebp - 0x1008], eax
ja 0x4a1a7f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a1a2d
test ebx, ebx
je 0x4a1a66
cmp ecx, edi
jae 0x4a1a66
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a1a47
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a1a53
cmp byte [ecx + 1], 0xa
jne 0x4a1a53
inc ecx
jmp 0x4a1a53
movzx eax, al
movsx eax, byte [eax + 0x538470]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a1a2d
cmp edx, ebx
jne 0x4a1a2d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a1a84
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x4a21c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x53b790]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a2205
cmp byte [ebx], 0xa
jne 0x4a2205
or byte [eax + edi + 0x28], 4
jmp 0x4a220a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a2308
mov al, byte [edx]
cmp al, 0x1a
je 0x4a22ea
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a2239
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a225e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a2268
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a221b
jmp 0x4a2308
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a22e5
cmp dword [ebp - 0xc], 0
je 0x4a22e5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x53b790]
test byte [eax + edi + 0x28], 0x48
je 0x4a22bf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a22aa
mov byte [esi], dl
jmp 0x4a22bb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x53b790]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a2308
cmp byte [ebp - 1], 0xa
jne 0x4a22ce
cmp esi, ebx
jne 0x4a22ce
mov byte [esi], 0xa
jmp 0x4a2307
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a2308
mov byte [esi], 0xd
jmp 0x4a2307
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x53b790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2304
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2308
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2364
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x53b790]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a23a7
cmp word [esi], dx
jne 0x4a23a7
or byte [edi + eax + 0x28], 4
jmp 0x4a23ac
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a24ff
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a24df
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a23ee
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a2424
cmp eax, edx
jae 0x4a2430
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a23c6
jmp 0x4a24ff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a24db
cmp dword [ebp - 0x14], 0
je 0x4a24db
mov eax, dword [ebx*4 + 0x53b790]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a24b3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a247c
mov word [esi], cx
jmp 0x4a24af
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x53b790]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x53b790]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x53b790]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a24ff
pop ebx
cmp word [ebp - 4], bx
jne 0x4a24c4
cmp esi, dword [ebp + 0xc]
jne 0x4a24c4
mov word [esi], bx
jmp 0x4a24fc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a24ff
push 0xd
jmp 0x4a24f8
mov ecx, dword [ebx*4 + 0x53b790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a24f6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a24ff
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4031d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.00404d00
push eax
call fcn.00404d10
movzx eax, ax
push eax
call fcn.00404d10
shr eax, 0x10
push eax
push str.Nov_22_2023
push str.github.com_librtlsdr
push 9
push 0
push str.rtl_tcp__an_I_Q_spectrum_server_for_RTL2832_based_SDR_receivers_nrtl_tcp_version__d._d__s___s__nrtl_sdr_library__d._d__s_n_n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
push dword [ebp + 8]
call fcn.00404a50
add esp, 0x28
push eax
push str.Usage:_trtl_tcp___a_listen_address__n_t__p_control_listen_port__default:_1234___n_t__r_response_listen_port:_0__off__1__default__for_On_at_control_listen_port_1__or_port__n_t__I_infrared_sensor_listen_port__default:_0none___n_t__W_infrared_sensor_query_wait_interval_usec__default:_10000___n_t__f_frequency_to_tune_to__Hz___n_t__g_gain_in_dB__default:_0_for_auto___n_t__s_samplerate_in_Hz__default:_2048000_Hz___n_t__b_number_of_buffers__default:_15__set_by_library___n_t__l_length_of_single_buffer_in_units_of_512_samples__default:_32_was_256___n_t__n_max_number_of_linked_list_buffers_to_keep__default:_500___n_t__w_rtlsdr_tuner_bandwidth__Hz___for_R820T_2_and_E4000_tuners___n_t__d_device_index_or_serial__default:_0___n_s_t__P_ppm_error__default:_0___n_t__T_enable_bias_T_on_GPIO_PIN_0__works_for_rtl_sdr.com_v3_dongles___n_t__D_direct_sampling_mode__default:_0__1__I__2__Q__3__I_below_threshold__4__Q_below_threshold___n_t__D_direct_sampling_threshold_frequency__default:_0_use_tuner_specific_frequency_threshold_for_3_and_4___n_t__v_increase_verbosity__default:_0___n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
add esp, 0xc
push 1
call fcn.00426056
int3
Function at 0x412320
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x80]
push eax
call esi
lea eax, [edi + 0xa4]
push eax
call esi
lea eax, [edi + 0xc4]
push eax
call esi
lea eax, [edi + 0xdc]
push eax
call fcn.00412940
add esp, 4
lea eax, [edi + 0xec]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0xc0], eax
lea esi, [edi + 0x10c]
lea eax, [edi + 0x78]
mov dword [esi + 4], esi
mov dword [eax + 4], eax
lea ebx, [edi + 0xc]
mov dword [eax], eax
lea eax, [edi + 0x114]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x124]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x12c]
push ebx
mov dword [esi], esi
mov dword [eax + 4], eax
mov dword [eax], eax
call fcn.00412e90
add esp, 4
test eax, eax
jns 0x4123b9
mov ebx, 0xffffff9d
jmp 0x4123e4
mov eax, dword [ebx]
push 0x10
mov dword [ebp + 8], eax
call fcn.00425da0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x412430
lea ebx, [eax - 0xb]
push dword [edi + 0xc]
call fcn.00412c20
push dword [edi + 0x10]
call fcn.00412c20
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [edi + 0x80]
push eax
call esi
lea eax, [edi + 0xa4]
push eax
call esi
lea eax, [edi + 0xc4]
push eax
call esi
lea eax, [edi + 0xdc]
push eax
call fcn.004128e0
add esp, 4
lea eax, [edi + 0xec]
push eax
call esi
push dword [edi + 0xc0]
call dword [sym.imp.KERNEL32.dll_TlsFree]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push 1
push dword [ebp + 8]
push str.add_fd__d_events__d
push str.usbi_add_pollfd
push 4
push 0
call fcn.0040fc50
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [ebx], eax
mov eax, 1
mov word [ebx + 4], ax
lea eax, [edi + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 8]
mov dword [ecx + 4], esi
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
push edi
mov dword [eax + 4], ecx
inc dword [edi + 0x120]
mov dword [esi], ecx
call fcn.00411fb0
add esp, 4
lea eax, [edi + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x4124aa
push dword [edi + 0xa0]
push 1
push dword [ebp + 8]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret