joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e8ff
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x485040
call fcn.0047e070
sub esp, 0x258
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.0042ef1b
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0044f0c6
test al, al
pop ecx
jne 0x44e93a
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0042f5a2
lea eax, [ebp - 0x14]
push 0x4aca38
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042f186
add esp, 0xc
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0042f61b
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x10]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.0042eea2
cmp edi, 0xffffffff
jne 0x44e992
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.0042f078
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x44ea58
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042f186
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
call fcn.0044ea8d
add esp, 0x10
test al, al
jne 0x44ea1d
test byte [ebp - 0x264], 1
je 0x44e9de
mov eax, dword [ebp - 0x264]
lea ecx, [ebp - 0x10]
and al, 0xfe
push eax
call fcn.0042f61b
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x264], 0x10
lea ecx, [ebp - 0x10]
je 0x44ea0d
push dword [ebp + 0xc]
call fcn.0042f61b
push eax
call fcn.0044e8ff
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x44ea1d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042eea2
jmp 0x44ea58
call fcn.0042f61b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x44ea75
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042eea2
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44e992
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x44e97a
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042eea2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.0042f078
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x44ea00
Function at 0x44ee5c
Capabilities:
Create directory

Disassembly:
mov eax, 0x4850c4
call fcn.0047e070
push ebx
push esi
push edi
lea ecx, [ebp + 8]
push dword [ebp + 8]
call fcn.0042ef1b
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
mov dword [ebp - 4], ebx
call fcn.0042f3a1
mov edi, dword [sym.imp.MSVCRT.dll_wcschr]
push 0x5c
push eax
call edi
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x44eed2
add esi, 2
push 0x5c
push esi
call edi
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x44eed2
push ebx
lea ecx, [ebp + 8]
mov word [esi], bx
call fcn.0042f61b
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44eec9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44eed0
mov word [esi], 0x5c
jmp 0x44ee95
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042eea2
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x44f0ec
Capabilities:
Check if file exists
Enumerate files on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa60
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 8]
mov dword [esi + 4], edi
cmp word [eax], di
jne 0x44f192
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
cmp ebx, edi
jne 0x44f146
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esi + 4], eax
ja 0x44f1fd
push 0x168
push str.S:Ammyy_sources_targetTrFmFileSys.cpp
lea ecx, [ebp - 0x10]
call fcn.004282fa
mov ecx, eax
call fcn.00428406
jmp 0x44f1fd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 8]
mov eax, dword [0x4ab01c]
mov dword [ebp - 8], eax
mov eax, dword [0x4ab020]
mov dword [ebp - 4], eax
mov eax, ebx
mov ecx, edi
shr eax, cl
test al, 1
je 0x44f180
lea eax, [edi + 0x41]
lea ecx, [ebp - 8]
mov word [ebp - 8], ax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
inc edi
cmp edi, 0x1a
jl 0x44f164
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
jmp 0x44f255
push eax
lea eax, [ebp - 0xa60]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0xa60]
push 0x4aca38
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0xa60]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44f205
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [esi + 4], eax
jne 0x44f1fd
mov eax, dword [esi + 8]
cmp word [eax], di
jbe 0x44f1fd
cmp word [eax + 2], 0x3a
jne 0x44f1fd
cmp word [eax + 4], 0x5c
jne 0x44f1fd
cmp word [eax + 6], di
jne 0x44f1fd
mov dword [esi + 4], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
jmp 0x44f255
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [ebp - 0x234]
push eax
call fcn.0044ea8d
test al, al
pop ecx
jne 0x44f23c
test byte [ebp - 0x25f], 4
je 0x44f22e
test byte [ebp - 0x260], 0x10
jne 0x44f23c
mov eax, dword [esi]
lea ecx, [ebp - 0x260]
push ecx
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44f20b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450858
Capabilities:
Lock the desktop

Disassembly:
mov eax, 0x48538c
call fcn.0047e070
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
lea eax, [edi + 0x1c]
push eax
call fcn.0042b147
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [edi + 4]
mov bx, word [esi + 0x84]
mov eax, dword [ecx]
call dword [eax + 0x14]
movsx ecx, bx
lea eax, [eax + ecx*4]
cmp dword [eax], esi
je 0x4508b4
lea eax, [ebp - 0x20]
push str.in_RemoveClient__1
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
and dword [eax], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042b15b
mov eax, dword [esi + 0x3c]
xor ebx, ebx
mov dword [ebp + 8], eax
mov eax, dword [esi]
inc ebx
mov ecx, esi
push ebx
call dword [eax]
mov dword [edi + 0xc0], ebx
cmp byte [0x4b3970], 0
je 0x45090b
cmp dword [ebp + 8], 5
jne 0x45090b
push ebx
push 5
call fcn.004141d0
pop ecx
test al, al
pop ecx
jne 0x45090b
push 0
push 5
call fcn.004141d0
pop ecx
test al, al
pop ecx
jne 0x45090b
call dword [sym.imp.USER32.dll_LockWorkStation]
push str.RemoveClient___done
push str.S:Ammyy_sources_targetTrMain.cpp
push 2
push 0x4b39b0
call fcn.0041dab3
add esp, 0x10
lea eax, [edi + 0x1c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0042b147
dec dword [edi]
lea ecx, [ebp - 0x14]
call fcn.0042b15b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x450e88
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push str._taskmgr.exe
push eax
call sub.MSVCRT.dll_strcat
pop ecx
mov eax, 0x4b3190
pop ecx
push 5
push eax
push eax
lea eax, [ebp - 0x104]
push eax
push 0x4a6868
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
leave
ret
Function at 0x454b05
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x454b41
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.Error__d_while_deleting_file__s
push eax
call fcn.0042a481
add esp, 0x10
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x454cde
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x8c]
cmp ecx, eax
jbe 0x454d01
mov ecx, eax
test ecx, ecx
mov dword [esi + 0x78], ecx
je 0x454e8e
xor edi, edi
cmp dword [esi + 0x6c], edi
jne 0x454d9b
mov eax, dword [esi + 0x88]
cmp eax, edi
je 0x454d9b
mov ebx, 0x4000
cmp eax, ebx
jae 0x454d34
mov ebx, eax
cmp ebx, edi
je 0x454e96
push ebx
push dword [esi + 0x64]
push esi
call fcn.004567d6
add esp, 0xc
test eax, eax
je 0x454eac
sub dword [esi + 0x88], ebx
mov eax, dword [esi + 0x64]
test byte [esi + 0x3c], 1
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ebx
je 0x454d9b
test ebx, ebx
jbe 0x454d9b
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x64]
and eax, 0xfffd
add ecx, edi
or al, 2
mov edx, eax
xor edx, 1
imul edx, eax
shr edx, 8
xor byte [ecx], dl
mov eax, dword [esi + 0x64]
mov al, byte [edi + eax]
push eax
lea eax, [esi + 0x90]
push eax
call fcn.00454fc6
inc edi
pop ecx
cmp edi, ebx
pop ecx
jb 0x454d62
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x6c]
cmp eax, ecx
jbe 0x454daa
mov eax, ecx
test eax, eax
je 0x454dd9
mov edx, dword [esi + 0x68]
sub ecx, eax
lea edi, [edx + eax]
mov dl, byte [edi - 1]
sub dword [esi + 0x8c], eax
sub dword [esi + 0x9c], eax
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x68], edi
jne 0x454dd9
cmp dl, byte [esi + 0xa0]
jne 0x454eb5
cmp word [esi + 0x3e], 0
jne 0x454e2e
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x6c]
cmp eax, edi
jae 0x454dec
mov edi, eax
push edi
push dword [esi + 0x68]
push dword [esi + 0x74]
call sub.MSVCRT.dll_memcpy
push edi
lea ebx, [esi + 0x84]
push dword [esi + 0x74]
push dword [ebx]
call fcn.00454ebe
sub dword [esi + 0x8c], edi
sub dword [esi + 0x6c], edi
sub dword [esi + 0x78], edi
add dword [esi + 0x74], edi
add dword [esi + 0x68], edi
add dword [esi + 0x7c], edi
add esp, 0x18
add dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [esi + 0x8c]
jmp 0x454e80
mov eax, dword [esi + 0x74]
mov ebx, dword [esi + 0x7c]
mov dword [ebp + 8], eax
lea eax, [esi + 0x68]
push 2
push eax
call fcn.0045501a
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
pop ecx
je 0x454e50
cmp eax, 1
jne 0x454ea1
mov edi, dword [esi + 0x7c]
sub edi, ebx
lea ebx, [esi + 0x84]
push edi
push dword [ebp + 8]
push dword [ebx]
call fcn.00454ebe
sub dword [esi + 0x8c], edi
add dword [ebp - 4], edi
add esp, 0xc
cmp dword [ebp + 0xc], 1
mov dword [ebx], eax
mov eax, dword [esi + 0x8c]
je 0x454e8e
test eax, eax
je 0x454e8e
cmp dword [esi + 0x78], 0
jne 0x454d0c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x84]
cmp eax, dword [esi + 0x44]
je 0x454ea8
mov dword [esi + 8], 0x12
xor eax, eax
jmp 0x454e91
mov dword [esi + 8], 7
jmp 0x454ea8
mov dword [esi + 8], 0x13
jmp 0x454ea8
Function at 0x454ebe
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edx, 0xff
not eax
jb 0x454f9f
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [ecx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, edx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x48ecb8]
xor eax, ebx
inc ecx
mov esi, eax
movzx ebx, byte [ecx]
and esi, edx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x48ecb8]
xor esi, eax
inc ecx
mov eax, esi
movzx ebx, byte [ecx]
and eax, edx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x48ecb8]
xor eax, esi
inc ecx
mov esi, eax
movzx ebx, byte [ecx]
and esi, edx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x48ecb8]
xor esi, eax
inc ecx
mov eax, esi
movzx ebx, byte [ecx]
and eax, edx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x48ecb8]
xor eax, esi
inc ecx
mov esi, eax
movzx ebx, byte [ecx]
and esi, edx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x48ecb8]
xor esi, eax
inc ecx
mov eax, esi
movzx ebx, byte [ecx]
and eax, edx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x48ecb8]
xor eax, esi
inc ecx
mov esi, eax
movzx ebx, byte [ecx]
and esi, edx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x48ecb8]
xor eax, esi
inc ecx
dec edi
jne 0x454ee1
pop ebx
cmp dword [ebp + 0x10], 0
je 0x454fc0
movzx edi, byte [ecx]
mov esi, eax
and esi, edx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x48ecb8]
xor eax, esi
inc ecx
dec dword [ebp + 0x10]
jne 0x454fa5
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x454fc6
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x48ecb8]
xor eax, esi
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
mov eax, dword [ecx + 8]
movzx esi, byte [ecx + 7]
mov edi, eax
and edi, edx
xor esi, edi
pop edi
shr eax, 8
mov edx, dword [esi*4 + 0x48ecb8]
pop esi
xor edx, eax
mov dword [ecx + 8], edx
ret

Function at 0x4567d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test byte [esi], 1
jne 0x45680a
lea eax, [ebp + 0x10]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x456805
and dword [ebp + 0x10], eax
mov dword [esi + 8], 7
mov eax, dword [ebp + 0x10]
jmp 0x456837
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x45681f
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 4]
push edi
add eax, ecx
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x45683a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp byte [eax], bl
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
je 0x456867
cmp byte [eax + 1], 0x3a
jne 0x456867
inc eax
inc eax
cmp byte [eax], 0x5c
jne 0x4568b5
inc eax
jmp 0x4568b5
push 0x5c
push eax
call fcn.004568c6
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x45688b
cmp dword [ebp + 0xc], ebx
jne 0x45688d
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
mov byte [esi], bl
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4568ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4568bb
cmp esi, ebx
je 0x456884
mov byte [esi], 0x5c
lea eax, [esi + 1]
cmp byte [eax], bl
jne 0x45686f
jmp 0x456884
cmp esi, ebx
je 0x4568c2
mov byte [esi], 0x5c
xor eax, eax
jmp 0x456887

Function at 0x4568dc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp word [eax], di
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], edi
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
je 0x45690c
cmp word [eax + 2], 0x3a
jne 0x45690c
add eax, 4
cmp word [eax], 0x5c
jne 0x45695f
inc eax
inc eax
jmp 0x45695f
push 0x5c
push eax
call fcn.00456973
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
jne 0x456932
cmp dword [ebp + 0xc], edi
jne 0x456935
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
mov word [esi], di
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x456953
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x456966
cmp esi, edi
je 0x45692b
mov word [esi], 0x5c
lea eax, [esi + 2]
cmp word [eax], di
jne 0x456916
jmp 0x45692b
cmp esi, edi
je 0x45696f
mov word [esi], 0x5c
xor eax, eax
jmp 0x45692e
Function at 0x45698d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x456b42
cmp dword [esi + 0x24], 0xffffffff
je 0x456b42
mov eax, dword [ebp + 0x14]
xor edi, edi
test al, 1
mov dword [esi + 8], edi
je 0x456a0c
cmp word [esi + 0x58], di
jne 0x4569da
push esi
call fcn.00456bd7
cmp dword [esi + 8], edi
pop ecx
jne 0x456b36
mov word [esi + 0x58], 1
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0x20]
push dword [ebp + 0xc]
push esi
call fcn.00454cde
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp dword [esi + 8], edi
jne 0x456a03
cmp dword [esi + 0x8c], edi
je 0x456a03
push 5
jmp 0x456b44
mov word [esi + 0x58], di
jmp 0x456b36
mov ebx, dword [ebp + 0x10]
test byte [ebx + 4], 0x10
je 0x456a3b
test al, 2
je 0x456a34
push 1
push dword [ebp + 0xc]
test eax, eax
jns 0x456a29
call fcn.004568dc
jmp 0x456a2e
call fcn.0045683a
pop ecx
cmp eax, edi
pop ecx
je 0x456a92
xor eax, eax
jmp 0x456b45
cmp eax, 4
jne 0x456a45
mov eax, dword [ebp + 0xc]
jmp 0x456a8a
mov dword [ebp + 8], eax
push edi
and dword [ebp + 8], 0x80000000
push dword [ebp + 0xc]
je 0x456a5c
call fcn.004568dc
jmp 0x456a61
call fcn.0045683a
pop ecx
cmp eax, edi
pop ecx
je 0x456a92
push edi
cmp dword [ebp + 8], edi
push dword [ebx + 4]
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
je 0x456a84
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x456a8a
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x456a9e
mov dword [esi + 8], 1
jmp 0x456b36
push esi
call fcn.00456bd7
cmp dword [esi + 8], edi
pop ecx
jne 0x456b27
cmp dword [esi + 0x34], edi
mov ebx, 0x4000
jne 0x456b05
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x456b05
mov dword [esi + 8], 2
jmp 0x456b05
push ebx
push dword [esi + 0x34]
push esi
call fcn.00454cde
add esp, 0xc
cmp eax, edi
mov dword [ebp + 8], eax
je 0x456b0a
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [esi + 0x34]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x456afe
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
je 0x456b05
mov dword [esi + 8], 3
cmp dword [esi + 8], edi
je 0x456acc
cmp dword [esi + 8], edi
mov ebx, dword [ebp + 0x10]
jne 0x456b27
lea eax, [ebx + 0x18]
push eax
lea eax, [ebx + 8]
add ebx, 0x10
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 4
je 0x456b36
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00456b4a
mov eax, dword [esi + 8]
pop ecx
jmp 0x456b45
push 9
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x458802
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x485688
call fcn.0047e070
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.004583ee
and dword [ebp - 4], 0
cmp dword [esi + 0x1c], 0
je 0x45883e
mov al, byte [ebp - 0xd]
push 0x49c314
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x14]
push eax
push 4
push esi
push 0x4585d3
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp - 0x14]
add esp, 0x18
test eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
jne 0x45887b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x49c250
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4588a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x49c250
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4588c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x49c250
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, ebx
mov dword [esi + 0x1c], 1
call fcn.0042b131
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x458f7b
Capabilities:
Create thread

Disassembly:
mov eax, 0x485700
call fcn.0047e070
sub esp, 0x2c
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x9c]
mov dword [ebp - 0x10], esp
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.0042b147
lea eax, [ebx + 0x8c]
mov esi, 0x4b391c
mov edi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
push 0x4a8894
push eax
movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x45912a
mov esi, str.S:Ammyy_sourcesmain_soundAudioIn.cpp
push str.StartSound__1
push esi
mov edi, 0x4b39b0
push 2
push edi
call fcn.0041dab3
add esp, 0x10
cmp dword [ebx + 0x80], 0
je 0x459011
lea eax, [ebp - 0x2c]
push str.AudioIn::Start:_Sound_Capture_thread_is_already_active
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
cmp eax, 0x3e8
mov dword [ebx], eax
jb 0x459024
cmp eax, 0xbb80
jbe 0x459036
push 0x42
push esi
lea ecx, [ebp - 0x20]
call fcn.004282fa
mov ecx, eax
call fcn.00428406
mov ax, word [ebx + 4]
cmp ax, 8
je 0x459058
cmp ax, 0x10
je 0x459058
push 0x43
push esi
lea ecx, [ebp - 0x20]
call fcn.004282fa
mov ecx, eax
call fcn.00428406
mov ax, word [ebx + 6]
cmp ax, 1
je 0x45907a
cmp ax, 2
je 0x45907a
push 0x44
push esi
lea ecx, [ebp - 0x20]
call fcn.004282fa
mov ecx, eax
call fcn.00428406
movzx eax, word [ebx + 4]
movzx ecx, word [ebx + 6]
shr eax, 3
imul eax, ecx
imul eax, dword [ebx]
xor edx, edx
mov ecx, 0x3e8
lea eax, [eax + eax*4]
shl eax, 2
div ecx
mov ecx, ebx
mov dword [ebx + 8], eax
call fcn.0045924f
push str.StartSound__2
push esi
push 2
push edi
call fcn.0041dab3
add esp, 0x10
mov ecx, ebx
mov byte [ebp - 4], 1
push 0x1f40
push 3
push 0
call fcn.00459a4b
push str.StartSound__3
push esi
push 2
push edi
call fcn.0041dab3
add esp, 0x10
xor esi, esi
mov dword [ebx + 0x84], esi
push esi
push esi
push ebx
push 0x4595b2
push esi
push esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [ebx + 0x80], eax
cmp dword [ebx + 0x80], esi
jne 0x45912a
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 0x38]
push str.Failed_to_start_Sound_Capture_thread__errno___d_
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x38]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042b15b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4