joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bab8
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 0x44bb5e
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
cmp ebx, edi
jne 0x44bb12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esi + 4], eax
ja 0x44bbc9
push 0x168
push str.S:Ammyy_sources_targetTrFmFileSys.cpp
lea ecx, [ebp - 0x10]
call fcn.00425678
mov ecx, eax
call fcn.00425784
jmp 0x44bbc9
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 [0x4a598c]
mov dword [ebp - 8], eax
mov eax, dword [0x4a5990]
mov dword [ebp - 4], eax
mov eax, ebx
mov ecx, edi
shr eax, cl
test al, 1
je 0x44bb4c
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 0x44bb30
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
jmp 0x44bc21
push eax
lea eax, [ebp - 0xa60]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0xa60]
push 0x4a72ac
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 0x44bbd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [esi + 4], eax
jne 0x44bbc9
mov eax, dword [esi + 8]
cmp word [eax], di
jbe 0x44bbc9
cmp word [eax + 2], 0x3a
jne 0x44bbc9
cmp word [eax + 4], 0x5c
jne 0x44bbc9
cmp word [eax + 6], di
jne 0x44bbc9
mov dword [esi + 4], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
jmp 0x44bc21
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [ebp - 0x234]
push eax
call fcn.0044b459
test al, al
pop ecx
jne 0x44bc08
test byte [ebp - 0x25f], 4
je 0x44bbfa
test byte [ebp - 0x260], 0x10
jne 0x44bc08
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 0x44bbd7
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c32f
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
jne 0x44c36c
mov al, byte [esi]
push 0
push 1
push eax
call fcn.00441102
push dword [esi]
push str.fake__d_down
push str.S:Ammyy_sources_targetTrKeymap.cpp
push 2
push 0x4ae550
call fcn.0041c894
add esp, 0x20
mov byte [esi + 4], 1
pop esi
ret

Function at 0x44c36e
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x44c3ab
mov al, byte [esi]
push 0
push 0
push eax
call fcn.00441102
push dword [esi]
push str.fake__d_up
push str.S:Ammyy_sources_targetTrKeymap.cpp
push 2
push 0x4ae550
call fcn.0041c894
add esp, 0x20
mov byte [esi + 5], 1
pop esi
ret

Function at 0x44c437
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
movzx esi, byte [esp + 8]
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x44c472
push esi
push str.SetKeyState__d
push str.S:Ammyy_sources_targetTrKeymap.cpp
push 2
push 0x4ae550
call fcn.0041c894
push 0
push 0
push dword [esp + 0x24]
call fcn.00441102
add esp, 0x20
pop esi
ret

Function at 0x44e6a3
Capabilities:
Lock the desktop

Disassembly:
mov eax, 0x482a74
call fcn.0047bf20
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
lea eax, [edi + 0x18]
push eax
call fcn.004283c9
mov esi, dword [ebp + 8]
mov eax, dword [edi]
and dword [ebp - 4], 0
mov ecx, edi
mov bx, word [esi + 0x84]
call dword [eax + 0x14]
movsx ecx, bx
lea eax, [eax + ecx*4]
cmp dword [eax], esi
je 0x44e6fe
lea eax, [ebp - 0x18]
push str.in_RemoveClient__1
push eax
call fcn.0042778f
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
and dword [eax], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004283dd
mov eax, dword [esi + 0x3c]
push str.deleteing_client_object_from_memory
push str.S:Ammyy_sources_targetTrMain.cpp
mov ebx, 0x4ae550
push 2
push ebx
mov dword [ebp + 8], eax
call fcn.0041c894
mov eax, dword [esi]
add esp, 0x10
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
push str.RemoveClient___done
push str.S:Ammyy_sources_targetTrMain.cpp
inc esi
push 2
push ebx
mov dword [edi + 0xbc], esi
call fcn.0041c894
add esp, 0x10
cmp byte [0x4ae524], 0
je 0x44e785
cmp dword [ebp + 8], 5
jne 0x44e785
push esi
push 5
call fcn.00414146
pop ecx
test al, al
pop ecx
jne 0x44e785
push 0
push 5
call fcn.00414146
pop ecx
test al, al
pop ecx
jne 0x44e785
call dword [sym.imp.USER32.dll_LockWorkStation]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x44ecc4
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, 0x4ade80
pop ecx
push 5
push eax
push eax
lea eax, [ebp - 0x104]
push eax
push 0x4a1230
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
leave
ret
Function at 0x45293f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x45297a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push 0x4a7c18
push eax
call fcn.0042778f
add esp, 0x10
lea eax, [ebp - 8]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x452bb3
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 0x452bd6
mov ecx, eax
test ecx, ecx
mov dword [esi + 0x78], ecx
je 0x452d63
xor edi, edi
cmp dword [esi + 0x6c], edi
jne 0x452c70
mov eax, dword [esi + 0x88]
cmp eax, edi
je 0x452c70
mov ebx, 0x4000
cmp eax, ebx
jae 0x452c09
mov ebx, eax
cmp ebx, edi
je 0x452d6b
push ebx
push dword [esi + 0x64]
push esi
call fcn.004546ab
add esp, 0xc
test eax, eax
je 0x452d81
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 0x452c70
test ebx, ebx
jbe 0x452c70
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.00452e9b
inc edi
pop ecx
cmp edi, ebx
pop ecx
jb 0x452c37
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x6c]
cmp eax, ecx
jbe 0x452c7f
mov eax, ecx
test eax, eax
je 0x452cae
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 0x452cae
cmp dl, byte [esi + 0xa0]
jne 0x452d8a
cmp word [esi + 0x3e], 0
jne 0x452d03
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x6c]
cmp eax, edi
jae 0x452cc1
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.00452d93
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 0x452d55
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.00452eef
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
pop ecx
je 0x452d25
cmp eax, 1
jne 0x452d76
mov edi, dword [esi + 0x7c]
sub edi, ebx
lea ebx, [esi + 0x84]
push edi
push dword [ebp + 8]
push dword [ebx]
call fcn.00452d93
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 0x452d63
test eax, eax
je 0x452d63
cmp dword [esi + 0x78], 0
jne 0x452be1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x84]
cmp eax, dword [esi + 0x44]
je 0x452d7d
mov dword [esi + 8], 0x12
xor eax, eax
jmp 0x452d66
mov dword [esi + 8], 7
jmp 0x452d7d
mov dword [esi + 8], 0x13
jmp 0x452d7d
Function at 0x452d93
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 0x452e74
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
xor eax, esi
inc ecx
dec edi
jne 0x452db6
pop ebx
cmp dword [ebp + 0x10], 0
je 0x452e95
movzx edi, byte [ecx]
mov esi, eax
and esi, edx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x48ac08]
xor eax, esi
inc ecx
dec dword [ebp + 0x10]
jne 0x452e7a
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x452e9b
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 + 0x48ac08]
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 + 0x48ac08]
pop esi
xor edx, eax
mov dword [ecx + 8], edx
ret

Function at 0x4546ab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test byte [esi], 1
jne 0x4546df
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 0x4546da
and dword [ebp + 0x10], eax
mov dword [esi + 8], 7
mov eax, dword [ebp + 0x10]
jmp 0x45470c
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 0x4546f4
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 0x45470f
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 0x45473c
cmp byte [eax + 1], 0x3a
jne 0x45473c
inc eax
inc eax
cmp byte [eax], 0x5c
jne 0x45478a
inc eax
jmp 0x45478a
push 0x5c
push eax
call fcn.0045479b
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x454760
cmp dword [ebp + 0xc], ebx
jne 0x454762
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 0x454780
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x454790
cmp esi, ebx
je 0x454759
mov byte [esi], 0x5c
lea eax, [esi + 1]
cmp byte [eax], bl
jne 0x454744
jmp 0x454759
cmp esi, ebx
je 0x454797
mov byte [esi], 0x5c
xor eax, eax
jmp 0x45475c

Function at 0x4547b1
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 0x4547e1
cmp word [eax + 2], 0x3a
jne 0x4547e1
add eax, 4
cmp word [eax], 0x5c
jne 0x454834
inc eax
inc eax
jmp 0x454834
push 0x5c
push eax
call fcn.00454848
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
jne 0x454807
cmp dword [ebp + 0xc], edi
jne 0x45480a
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 0x454828
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45483b
cmp esi, edi
je 0x454800
mov word [esi], 0x5c
lea eax, [esi + 2]
cmp word [eax], di
jne 0x4547eb
jmp 0x454800
cmp esi, edi
je 0x454844
mov word [esi], 0x5c
xor eax, eax
jmp 0x454803
Function at 0x454862
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 0x454a17
cmp dword [esi + 0x24], 0xffffffff
je 0x454a17
mov eax, dword [ebp + 0x14]
xor edi, edi
test al, 1
mov dword [esi + 8], edi
je 0x4548e1
cmp word [esi + 0x58], di
jne 0x4548af
push esi
call fcn.00454aac
cmp dword [esi + 8], edi
pop ecx
jne 0x454a0b
mov word [esi + 0x58], 1
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0x20]
push dword [ebp + 0xc]
push esi
call fcn.00452bb3
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp dword [esi + 8], edi
jne 0x4548d8
cmp dword [esi + 0x8c], edi
je 0x4548d8
push 5
jmp 0x454a19
mov word [esi + 0x58], di
jmp 0x454a0b
mov ebx, dword [ebp + 0x10]
test byte [ebx + 4], 0x10
je 0x454910
test al, 2
je 0x454909
push 1
push dword [ebp + 0xc]
test eax, eax
jns 0x4548fe
call fcn.004547b1
jmp 0x454903
call fcn.0045470f
pop ecx
cmp eax, edi
pop ecx
je 0x454967
xor eax, eax
jmp 0x454a1a
cmp eax, 4
jne 0x45491a
mov eax, dword [ebp + 0xc]
jmp 0x45495f
mov dword [ebp + 8], eax
push edi
and dword [ebp + 8], 0x80000000
push dword [ebp + 0xc]
je 0x454931
call fcn.004547b1
jmp 0x454936
call fcn.0045470f
pop ecx
cmp eax, edi
pop ecx
je 0x454967
push edi
cmp dword [ebp + 8], edi
push dword [ebx + 4]
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
je 0x454959
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x45495f
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x454973
mov dword [esi + 8], 1
jmp 0x454a0b
push esi
call fcn.00454aac
cmp dword [esi + 8], edi
pop ecx
jne 0x4549fc
cmp dword [esi + 0x34], edi
mov ebx, 0x4000
jne 0x4549da
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x4549da
mov dword [esi + 8], 2
jmp 0x4549da
push ebx
push dword [esi + 0x34]
push esi
call fcn.00452bb3
add esp, 0xc
cmp eax, edi
mov dword [ebp + 8], eax
je 0x4549df
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 0x4549d3
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
je 0x4549da
mov dword [esi + 8], 3
cmp dword [esi + 8], edi
je 0x4549a1
cmp dword [esi + 8], edi
mov ebx, dword [ebp + 0x10]
jne 0x4549fc
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 0x454a0b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00454a1f
mov eax, dword [esi + 8]
pop ecx
jmp 0x454a1a
push 9
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4566c7
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x482d70
call fcn.0047bf20
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.004283ab
and dword [ebp - 4], 0
cmp dword [esi + 0x1c], 0
je 0x456703
mov al, byte [ebp - 0xd]
push 0x497838
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 0x456498
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 0x456740
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x497774
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x456765
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x497774
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x45678a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x497774
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, ebx
mov dword [esi + 0x1c], 1
call fcn.004283b3
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x456e40
Capabilities:
Create thread

Disassembly:
mov eax, 0x482de8
call fcn.0047bf20
sub esp, 0x24
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.004283c9
lea eax, [ebx + 0x8c]
mov esi, 0x4ae4d0
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 0x4a2ff4
push eax
movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x456fef
mov esi, str.S:Ammyy_sourcesmain_soundAudioIn.cpp
push str.StartSound__1
push esi
mov edi, 0x4ae550
push 2
push edi
call fcn.0041c894
add esp, 0x10
cmp dword [ebx + 0x80], 0
je 0x456ed6
lea eax, [ebp - 0x20]
push str.AudioIn::Start:_Sound_Capture_thread_is_already_active
push eax
call fcn.0042778f
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
cmp eax, 0x3e8
mov dword [ebx], eax
jb 0x456ee9
cmp eax, 0xbb80
jbe 0x456efb
push 0x42
push esi
lea ecx, [ebp - 0x30]
call fcn.00425678
mov ecx, eax
call fcn.00425784
mov ax, word [ebx + 4]
cmp ax, 8
je 0x456f1d
cmp ax, 0x10
je 0x456f1d
push 0x43
push esi
lea ecx, [ebp - 0x30]
call fcn.00425678
mov ecx, eax
call fcn.00425784
mov ax, word [ebx + 6]
cmp ax, 1
je 0x456f3f
cmp ax, 2
je 0x456f3f
push 0x44
push esi
lea ecx, [ebp - 0x30]
call fcn.00425678
mov ecx, eax
call fcn.00425784
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.00457114
push str.StartSound__2
push esi
push 2
push edi
call fcn.0041c894
add esp, 0x10
mov ecx, ebx
mov byte [ebp - 4], 1
push 0x1f40
push 3
push 0
call fcn.00457910
push str.StartSound__3
push esi
push 2
push edi
call fcn.0041c894
add esp, 0x10
xor esi, esi
mov dword [ebx + 0x84], esi
push esi
push esi
push ebx
push 0x457477
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 0x456fef
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 0x28]
push str.Failed_to_start_Sound_Capture_thread__errno___d_
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004283dd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x45783c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x457866
movzx eax, word [esi + 4]
movzx ecx, word [esi + 6]
shr eax, 3
imul eax, ecx
imul eax, dword [esi + 0x78]
cmp ebx, eax
jbe 0x45787f
push 0x1be
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.00425678
mov ecx, eax
call fcn.00425784
mov ax, word [esi + 4]
cmp ax, 0x10
jne 0x4578c6
test bl, 1
je 0x4578a7
push 0x1c2
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.00425678
mov ecx, eax
call fcn.00425784
shr ebx, 1
xor eax, eax
test ebx, ebx
jle 0x457909
movsx ecx, word [edi + eax*2]
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x7c]
fild dword [ebp + 8]
fstp dword [ecx + eax*4]
inc eax
cmp eax, ebx
jl 0x4578af
jmp 0x457909
cmp ax, 8
je 0x4578e5
push 0x1ca
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.00425678
mov ecx, eax
call fcn.00425784
xor eax, eax
test ebx, ebx
jbe 0x457909
movsx ecx, byte [eax + edi]
xor ecx, 0x80
shl ecx, 8
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x7c]
fild dword [ebp + 8]
fstp dword [ecx + eax*4]
inc eax
cmp eax, ebx
jb 0x4578eb
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x457b21
Capabilities:
Create thread

Disassembly:
mov eax, 0x482e88
call fcn.0047bf20
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
cmp dword [esi + 0xb8], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
je 0x457b64
lea eax, [ebp - 0x20]
push str.AudioOut::StartSound___Sound_Playback_thread_is_already_active
push eax
call fcn.0042778f
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call fcn.00457e66
push 1
push edi
mov ecx, esi
call fcn.00458085
lea ecx, [esi + 0x84]
cmp dword [ecx], edi
jne 0x457b86
push edi
push edi
call fcn.00427599
push edi
push edi
push esi
push 0x45818d
push edi
push edi
mov dword [esi + 0xbc], edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xb8], eax
cmp dword [esi + 0xb8], edi
jne 0x457bd4
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 0x28]
push str.Failed_to_start_Sound_Playback_thread__errno___d_
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
xor eax, eax
inc eax
jmp 0x457bfd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret