joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b77d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
not eax
test edx, edx
je 0x4b77fc
mov ecx, dword [ebp + 8]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x6149a0]
inc ecx
dec edx
jne 0x4b77e4
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x4c8fd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c82db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push 0x44
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0052e6e0
add esp, 0xc
push 0xffffffffffffffff
mov ecx, 0xa
push 0
mov word [ebp - 0x6c], cx
mov ebx, 1
push 0x68a48c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x9c], 0x44
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.004018d0
push 3
push 0x618f10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00419290
cmp dword [ebp + 8], 0
jge 0x4c9073
push 0xffffffffffffffff
push 0
push 0x68a6a4
lea ecx, [ebp - 0x2c]
call fcn.00404930
lea esi, [ebx + 0xf]
jmp 0x4c90a9
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.0040deb0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00404930
mov esi, 0x10
cmp dword [ebp - 0x44], esi
jb 0x4c90a9
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0052d217
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x4c90b4
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x9c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4c90fd
cmp dword [ebp - 0x18], esi
jb 0x4c90e9
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0052d217
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x3c]
or ebx, 0xffffffff
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4c912f
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x3c]
push ecx
call esi
cmp dword [ebp - 0x10], 0
sete bl
cmp dword [ebp - 0x18], 0x10
jb 0x4c914e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0052d217
add esp, 4
mov ecx, dword [ebp - 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d9740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9025
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi + 0x1a0], 0x4d9150
mov eax, dword [edi + 0x30]
mov edx, dword [eax + 0xc]
lea ecx, [edi + 0x30]
call edx
mov ebx, eax
mov eax, 0x20
sub eax, dword [0x690b68]
mov ecx, 1
shl eax, 4
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ebp - 0x14], eax
cmp eax, ecx
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x10]
jl 0x4d97a3
lea eax, [ebp - 0x14]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x14], ecx
cmp eax, ecx
mov dword [ebp - 0x10], eax
mov dword [edi + 0x3c], edx
lea ecx, [ebp - 0x14]
jl 0x4d97ba
lea ecx, [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [edi + 0x38], ecx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], pe_nt_image_headers32
cmp eax, edx
jne 0x4d97d0
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x34], edx
mov ecx, dword [edi + 0x1ac]
cmp ecx, edx
je 0x4d97f5
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x2a8
call fcn.0052d4ce
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebp - 4], eax
cmp ecx, eax
je 0x4d985a
cmp byte [edi + 0x399], al
push eax
push eax
push eax
sete al
mov edx, dword [eax*4 + 0x68a164]
mov eax, dword [0x68a6f4]
push edx
push eax
mov eax, dword [edi + 0x138]
sub eax, dword [0x68b8bc]
cdq
sub eax, edx
mov edx, dword [edi + 0x11c]
sar eax, 1
add eax, dword [edi + 0x120]
add edx, 0xa
push eax
push edx
lea eax, [edi + 0x1b4]
push eax
push 0x10
call fcn.004e5f80
mov ecx, dword [0x68a3ec]
push eax
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.004cefa0
push eax
lea ecx, [edi + 0x1ac]
call fcn.00480390
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x505b20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc4d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CFontListView.0
lea ecx, [esi + 0x64]
mov dword [ebp - 4], 1
call fcn.0059ce80
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 0
call fcn.0059d270
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.0059d270
test byte [ebp + 8], 1
je 0x505b7d
push esi
call fcn.0052d217
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x505b90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc4fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CFontDialog.0
lea esi, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CFontListView.0
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 2
call fcn.0059ce80
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0059d270
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.0059d270
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.005852d0
test byte [ebp + 8], 1
je 0x505c0b
push edi
call fcn.0052d217
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x506010
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc571
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CInportDialog.0
mov eax, dword [esi + 0xdc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x50606f
mov edx, dword [ebp - 0x10]
mov ecx, dword [esi + 0xe0]
push edx
lea edx, [esi + 0xe8]
push edx
push ecx
push eax
call fcn.0040e030
mov eax, dword [esi + 0xdc]
push eax
call fcn.0052d217
add esp, 0x14
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov eax, dword [esi + 0xcc]
cmp eax, ebx
je 0x5060b2
mov edx, dword [ebp - 0x10]
mov ecx, dword [esi + 0xd0]
push edx
lea edx, [esi + 0xd8]
push edx
push ecx
push eax
call fcn.0040e030
mov eax, dword [esi + 0xcc]
push eax
call fcn.0052d217
add esp, 0x14
lea edi, [esi + 0xc]
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [ebp - 0x14], edi
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 2
call fcn.0059ce80
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.0059d270
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0059d270
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.005852d0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x530614
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x67e3b0]
jne 0x53061e
repz ret
jmp fcn.0053b200
Function at 0x53ed0c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x67e3b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005363c1
and dword [ebp - 0x14], 0
cmp dword [0x6923a4], 0
mov dword [ebp - 0x18], eax
jne 0x53edbf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x53ee67
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x53ee67
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x6923a4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x6923a8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6923ac], eax
call edi
push eax
call esi
mov dword [0x6923b4], eax
test eax, eax
je 0x53edbf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x6923b0], eax
mov eax, dword [0x6923b0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x53ee18
cmp dword [0x6923b4], ecx
je 0x53ee18
push eax
call esi
push dword [0x6923b4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x53ee18
test ebx, ebx
je 0x53ee18
call edi
test eax, eax
je 0x53ee0f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x53ee0f
test byte [ebp - 8], 1
jne 0x53ee18
or dword [ebp + 0x10], 0x200000
jmp 0x53ee4b
mov eax, dword [0x6923a8]
cmp eax, dword [ebp - 0x18]
je 0x53ee4b
push eax
call esi
test eax, eax
je 0x53ee4b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x53ee4b
mov eax, dword [0x6923ac]
cmp eax, dword [ebp - 0x18]
je 0x53ee4b
push eax
call esi
test eax, eax
je 0x53ee4b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6923a4]
call esi
test eax, eax
je 0x53ee67
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x53ee69
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00530614
leave
ret
Function at 0x546630
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x54665f
push esi
call fcn.00548ae0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x546658
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5466d9
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x5466c9
mov eax, dword [esi + 8]
test eax, eax
je 0x546684
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x5466c5
cmp eax, 2
je 0x5466c9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x546675
cmp eax, 3
je 0x5466ac
cmp eax, 1
jne 0x546675
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x546675
mov ecx, dword [esi + 0x128]
add dword [eax + 8], ecx
jmp 0x546675
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.005464c0
pop esi
ret
cmp eax, 0xcc
je 0x5466fb
mov eax, dword [esi]
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
call fcn.005464c0
pop esi
ret
Function at 0x550f90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1c0]
mov dword [esp + 0x18], esi
jne 0x550fb7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x550fc3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [esp + 0xc], ecx
cmp dword [edi + 0x64], ecx
jle 0x5510d5
push ebx
push ebp
jmp 0x55100c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov edi, dword [esi + ecx*4 + 0x20]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
je 0x55102f
mov edx, dword [esi + 0x18]
add dword [edx + ecx*4], 0xff
lea eax, [edx + ecx*4]
mov eax, dword [esi + 0x18]
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi + edi - 2]
cdq
idiv ecx
xor ebx, ebx
xor ecx, ecx
mov esi, eax
cmp ecx, esi
jle 0x55107e
mov edx, ebx
imul edx, edx, 0x1fe
lea edi, [edx + edi + 0xfe]
jmp 0x551060
mov esi, dword [esp + 0x18]
add edi, 0x1fe
mov eax, edi
cdq
lea esi, [esi + esi - 2]
idiv esi
inc ebx
mov esi, eax
cmp ecx, esi
jg 0x551060
mov edi, dword [esp + 0x18]
mov al, byte [esp + 0x1c]
imul bl
mov byte [ecx + ebp], al
inc ecx
cmp ecx, 0xff
jle 0x551048
cmp dword [esp + 0x10], 0
je 0x5510bd
mov eax, 1
lea ecx, [ebp - 1]
nop
movzx edx, byte [ebp]
mov byte [ecx], dl
movzx edx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], dl
inc eax
dec ecx
cmp eax, 0xff
jle 0x5510a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [ecx + 0x64]
jl 0x551000
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x55c600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x55c625
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x55c63d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x55c66c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x55c6ae
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x55c782
sub edx, 0x10000
js 0x55c782
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x55c694
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x55c694
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x55c705
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x55c702
add edx, 8
jne 0x55c6e9
jmp 0x55c773
add edx, 4
test eax, 0xffff
jne 0x55c712
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x55c773
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x55c746
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x55c694
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x55c782
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x55c694
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x55c793
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5833a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
pop ebp
jmp fcn.005aca10
Function at 0x584590
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xffffffffffffffff
xor edi, edi
mov ebx, ecx
push edi
lea ecx, [ebx + 0x44]
push eax
call fcn.004018d0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0x18
push ecx
push eax
lea esi, [ebx + 4]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], ecx
mov dword [ebx + 0x68], edi
call fcn.0058aab0
push 0x8c
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0x2c]
push edi
push edx
mov dword [ebp + 8], ecx
call fcn.0052e6e0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
xor eax, eax
push 0x2c
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x2c]
push edi
mov esi, 0x6376736d
push edx
mov dword [ebp - 0xb8], 0x73646976
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa4], 1
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], 0xffffffff
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
call fcn.0052e6e0
add esp, 0x18
mov dword [ebp - 0x2c], 0x73646976
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x1d4c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.AVIFIL32.dll_AVIFileInit]
cmp dword [ebx + 0x58], 0x10
lea esi, [ebx + 0x44]
jb 0x5846b0
mov eax, dword [esi]
jmp 0x5846b2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x14], 0x10
jb 0x5846c1
mov esi, dword [esi]
push edi
push 0x1041
lea eax, [ebx + 0x38]
push esi
push eax
call dword [sym.imp.AVIFIL32.dll_AVIFileOpenA]
test eax, eax
jne 0x58471d
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0xb8]
push eax
lea esi, [ebx + 0x3c]
push esi
push ecx
call dword [sym.imp.AVIFIL32.dll_AVIFileCreateStreamA]
test eax, eax
jne 0x58471d
push 0x2c
lea edx, [ebp - 0x2c]
push edi
push edx
call fcn.0052e6e0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push esi
push 1
push edi
push edi
call dword [sym.imp.AVIFIL32.dll_AVISaveOptions]
test eax, eax
jne 0x584728
lea ecx, [ebp + 8]
push ecx
push 1
call dword [sym.imp.AVIFIL32.dll_AVISaveOptionsFree]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi]
push edi
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebx + 0x40]
push ecx
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.AVIFIL32.dll_AVIMakeCompressedStream]
test eax, eax
jne 0x58471d
mov ebx, dword [ebx + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push 0x28
push ebx
push edi
push eax
call dword [sym.imp.AVIFIL32.dll_AVIStreamSetFormat]
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x586980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0x400
jb 0x5869a2
mov eax, dword [eax]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x408]
push edx
lea edx, [ebp - 4]
push edx
push 0
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5869f1
lea eax, [ebp - 0x408]
lea edx, [eax + 1]
jmp 0x5869d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5869d0
sub eax, edx
push eax
lea ecx, [ebp - 0x408]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00405440
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x5885c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x88], 0
je 0x5885da
mov eax, edi
call fcn.00587c30
mov eax, dword [edi + 0x18]
mov edx, dword [eax]
lea ecx, [edi + 0x7c]
push ecx
push 0x622780
push eax
mov eax, dword [edx]
call eax
test eax, eax
jns 0x5885fa
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
xor esi, esi
add edi, 0x94
lea ebx, [ebx]
push 0
push 0
push 0
push 0
call ebx
mov dword [ebp + esi*8 - 0x14], eax
mov dword [edi], eax
inc esi
add edi, 4
cmp esi, 3
jl 0x588610
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x7c]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x18]
push ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], 0xffffffff
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 3
push eax
call edx
test eax, eax
jns 0x58865e
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
push 0x14
call fcn.0052d4ce
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x5886b7
push ebx
mov dword [esi], vtable.CThread.0
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0xe], bl
mov byte [esi + 0xc], 1
call fcn.0058a4b0
mov eax, dword [esi + 4]
mov dword [esi], vtable.CWaveStreamThread.0
mov dword [esi + 0x10], edi
cmp eax, ebx
je 0x5886b9
cmp byte [esi + 0xc], bl
je 0x5886b9
push eax
mov byte [esi + 0xc], bl
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [edi + 0x88], esi
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
xor esi, esi
mov dword [edi + 0x88], esi
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x58a3b0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
je 0x58a3c3
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [esi + 4]
test esi, esi
je 0x58a3d3
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret

Function at 0x58a410
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x58a428
cmp byte [ecx + 0xc], 0
je 0x58a428
push eax
mov byte [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x58a430
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
je 0x58a45d
cmp byte [ecx + 0xc], 0
jne 0x58a45d
cmp byte [ebp + 8], 0
mov byte [ecx + 0xc], 1
je 0x58a456
mov byte [ecx + 0xd], 0
mov edi, edi
cmp byte [ecx + 0xd], 0
je 0x58a450
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
pop ebp
ret 4

Function at 0x58a4b0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
test eax, eax
je 0x58a4f2
cmp byte [esi + 0xe], 0
jne 0x58a4f2
cmp byte [esi + 0xc], 0
mov byte [esi + 0xe], 1
je 0x58a4d1
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
test eax, eax
je 0x58a4f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x58a370
push 0
push 0
mov dword [eax], 0
mov dword [esi + 4], 0
mov byte [esi + 0xe], 0
mov byte [esi + 0xc], 1
call fcn.0055fe4e
mov ecx, dword [ebp + 8]
add esp, 0x18
push ecx
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, 1
pop ebp
ret 4

Function at 0x58a540
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [esi], vtable.CThread.0
test eax, eax
je 0x58a588
cmp byte [esi + 0xe], 0
jne 0x58a588
cmp byte [esi + 0xc], 0
mov byte [esi + 0xe], 1
je 0x58a567
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
test eax, eax
je 0x58a588
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
pop esi
ret