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

Disassembly:
mov eax, 0x4826c0
call fcn.0047bfa0
sub esp, 0x258
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.0042bf1c
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0044baca
test al, al
pop ecx
jne 0x44b33e
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0042c5a3
lea eax, [ebp - 0x14]
push 0x4a72ec
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042c187
add esp, 0xc
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0042b08a
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x10]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.0042bea3
cmp edi, 0xffffffff
jne 0x44b396
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.0042c079
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x44b45c
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042c187
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
call fcn.0044b491
add esp, 0x10
test al, al
jne 0x44b421
test byte [ebp - 0x264], 1
je 0x44b3e2
mov eax, dword [ebp - 0x264]
lea ecx, [ebp - 0x10]
and al, 0xfe
push eax
call fcn.0042b08a
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x264], 0x10
lea ecx, [ebp - 0x10]
je 0x44b411
push dword [ebp + 0xc]
call fcn.0042b08a
push eax
call fcn.0044b303
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x44b421
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042bea3
jmp 0x44b45c
call fcn.0042b08a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x44b479
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042bea3
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44b396
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x44b37e
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042bea3
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.0042c079
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x44b404
Function at 0x44b860
Capabilities:
Create directory

Disassembly:
mov eax, 0x482744
call fcn.0047bfa0
push ebx
push esi
push edi
lea ecx, [ebp + 8]
push dword [ebp + 8]
call fcn.0042bf1c
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
mov dword [ebp - 4], ebx
call fcn.0042c3a2
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 0x44b8d6
add esi, 2
push 0x5c
push esi
call edi
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x44b8d6
push ebx
lea ecx, [ebp + 8]
mov word [esi], bx
call fcn.0042b08a
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44b8cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44b8d4
mov word [esi], 0x5c
jmp 0x44b899
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042bea3
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x44baf0
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 0x44bb96
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
cmp ebx, edi
jne 0x44bb4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esi + 4], eax
ja 0x44bc01
push 0x168
push str.S:Ammyy_sources_targetTrFmFileSys.cpp
lea ecx, [ebp - 0x10]
call fcn.00425667
mov ecx, eax
call fcn.00425773
jmp 0x44bc01
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 [0x4a5994]
mov dword [ebp - 8], eax
mov eax, dword [0x4a5998]
mov dword [ebp - 4], eax
mov eax, ebx
mov ecx, edi
shr eax, cl
test al, 1
je 0x44bb84
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 0x44bb68
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
jmp 0x44bc59
push eax
lea eax, [ebp - 0xa60]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0xa60]
push 0x4a72ec
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 0x44bc09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [esi + 4], eax
jne 0x44bc01
mov eax, dword [esi + 8]
cmp word [eax], di
jbe 0x44bc01
cmp word [eax + 2], 0x3a
jne 0x44bc01
cmp word [eax + 4], 0x5c
jne 0x44bc01
cmp word [eax + 6], di
jne 0x44bc01
mov dword [esi + 4], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
jmp 0x44bc59
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [ebp - 0x234]
push eax
call fcn.0044b491
test al, al
pop ecx
jne 0x44bc40
test byte [ebp - 0x25f], 4
je 0x44bc32
test byte [ebp - 0x260], 0x10
jne 0x44bc40
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 0x44bc0f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c367
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 0x44c3a4
mov al, byte [esi]
push 0
push 1
push eax
call fcn.0044110e
push dword [esi]
push str.fake__d_down
push str.S:Ammyy_sources_targetTrKeymap.cpp
push 2
push 0x4ae590
call fcn.0041c880
add esp, 0x20
mov byte [esi + 4], 1
pop esi
ret

Function at 0x44c3a6
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 0x44c3e3
mov al, byte [esi]
push 0
push 0
push eax
call fcn.0044110e
push dword [esi]
push str.fake__d_up
push str.S:Ammyy_sources_targetTrKeymap.cpp
push 2
push 0x4ae590
call fcn.0041c880
add esp, 0x20
mov byte [esi + 5], 1
pop esi
ret

Function at 0x44c46f
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 0x44c4aa
push esi
push str.SetKeyState__d
push str.S:Ammyy_sources_targetTrKeymap.cpp
push 2
push 0x4ae590
call fcn.0041c880
push 0
push 0
push dword [esp + 0x24]
call fcn.0044110e
add esp, 0x20
pop esi
ret

Function at 0x44e6d6
Capabilities:
Lock the desktop

Disassembly:
mov eax, 0x482aa4
call fcn.0047bfa0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
lea eax, [edi + 0x18]
push eax
call fcn.004283a9
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 0x44e731
lea eax, [ebp - 0x18]
push str.in_RemoveClient__1
push eax
call fcn.0042777f
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
and dword [eax], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004283bd
mov eax, dword [esi + 0x3c]
push str.deleteing_client_object_from_memory
push str.S:Ammyy_sources_targetTrMain.cpp
mov ebx, 0x4ae590
push 2
push ebx
mov dword [ebp + 8], eax
call fcn.0041c880
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.0041c880
add esp, 0x10
cmp byte [0x4ae564], 0
je 0x44e7b8
cmp dword [ebp + 8], 5
jne 0x44e7b8
push esi
push 5
call fcn.00414119
pop ecx
test al, al
pop ecx
jne 0x44e7b8
push 0
push 5
call fcn.00414119
pop ecx
test al, al
pop ecx
jne 0x44e7b8
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 0x44ecf7
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, 0x4adf20
pop ecx
push 5
push eax
push eax
lea eax, [ebp - 0x104]
push eax
push 0x4a1238
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
leave
ret
Function at 0x452972
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 0x4529ad
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push 0x4a7c58
push eax
call fcn.0042777f
add esp, 0x10
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x452be6
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 0x452c09
mov ecx, eax
test ecx, ecx
mov dword [esi + 0x78], ecx
je 0x452d96
xor edi, edi
cmp dword [esi + 0x6c], edi
jne 0x452ca3
mov eax, dword [esi + 0x88]
cmp eax, edi
je 0x452ca3
mov ebx, 0x4000
cmp eax, ebx
jae 0x452c3c
mov ebx, eax
cmp ebx, edi
je 0x452d9e
push ebx
push dword [esi + 0x64]
push esi
call fcn.004546de
add esp, 0xc
test eax, eax
je 0x452db4
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 0x452ca3
test ebx, ebx
jbe 0x452ca3
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.00452ece
inc edi
pop ecx
cmp edi, ebx
pop ecx
jb 0x452c6a
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x6c]
cmp eax, ecx
jbe 0x452cb2
mov eax, ecx
test eax, eax
je 0x452ce1
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 0x452ce1
cmp dl, byte [esi + 0xa0]
jne 0x452dbd
cmp word [esi + 0x3e], 0
jne 0x452d36
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x6c]
cmp eax, edi
jae 0x452cf4
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.00452dc6
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 0x452d88
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.00452f22
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
pop ecx
je 0x452d58
cmp eax, 1
jne 0x452da9
mov edi, dword [esi + 0x7c]
sub edi, ebx
lea ebx, [esi + 0x84]
push edi
push dword [ebp + 8]
push dword [ebx]
call fcn.00452dc6
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 0x452d96
test eax, eax
je 0x452d96
cmp dword [esi + 0x78], 0
jne 0x452c14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x84]
cmp eax, dword [esi + 0x44]
je 0x452db0
mov dword [esi + 8], 0x12
xor eax, eax
jmp 0x452d99
mov dword [esi + 8], 7
jmp 0x452db0
mov dword [esi + 8], 0x13
jmp 0x452db0
Function at 0x452dc6
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 0x452ea7
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 0x452de9
pop ebx
cmp dword [ebp + 0x10], 0
je 0x452ec8
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 0x452ead
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x452ece
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 0x4546de
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test byte [esi], 1
jne 0x454712
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 0x45470d
and dword [ebp + 0x10], eax
mov dword [esi + 8], 7
mov eax, dword [ebp + 0x10]
jmp 0x45473f
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 0x454727
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 0x454742
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 0x45476f
cmp byte [eax + 1], 0x3a
jne 0x45476f
inc eax
inc eax
cmp byte [eax], 0x5c
jne 0x4547bd
inc eax
jmp 0x4547bd
push 0x5c
push eax
call fcn.004547ce
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x454793
cmp dword [ebp + 0xc], ebx
jne 0x454795
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 0x4547b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4547c3
cmp esi, ebx
je 0x45478c
mov byte [esi], 0x5c
lea eax, [esi + 1]
cmp byte [eax], bl
jne 0x454777
jmp 0x45478c
cmp esi, ebx
je 0x4547ca
mov byte [esi], 0x5c
xor eax, eax
jmp 0x45478f

Function at 0x4547e4
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 0x454814
cmp word [eax + 2], 0x3a
jne 0x454814
add eax, 4
cmp word [eax], 0x5c
jne 0x454867
inc eax
inc eax
jmp 0x454867
push 0x5c
push eax
call fcn.0045487b
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
jne 0x45483a
cmp dword [ebp + 0xc], edi
jne 0x45483d
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 0x45485b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45486e
cmp esi, edi
je 0x454833
mov word [esi], 0x5c
lea eax, [esi + 2]
cmp word [eax], di
jne 0x45481e
jmp 0x454833
cmp esi, edi
je 0x454877
mov word [esi], 0x5c
xor eax, eax
jmp 0x454836
Function at 0x454895
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 0x454a4a
cmp dword [esi + 0x24], 0xffffffff
je 0x454a4a
mov eax, dword [ebp + 0x14]
xor edi, edi
test al, 1
mov dword [esi + 8], edi
je 0x454914
cmp word [esi + 0x58], di
jne 0x4548e2
push esi
call fcn.00454adf
cmp dword [esi + 8], edi
pop ecx
jne 0x454a3e
mov word [esi + 0x58], 1
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0x20]
push dword [ebp + 0xc]
push esi
call fcn.00452be6
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp dword [esi + 8], edi
jne 0x45490b
cmp dword [esi + 0x8c], edi
je 0x45490b
push 5
jmp 0x454a4c
mov word [esi + 0x58], di
jmp 0x454a3e
mov ebx, dword [ebp + 0x10]
test byte [ebx + 4], 0x10
je 0x454943
test al, 2
je 0x45493c
push 1
push dword [ebp + 0xc]
test eax, eax
jns 0x454931
call fcn.004547e4
jmp 0x454936
call fcn.00454742
pop ecx
cmp eax, edi
pop ecx
je 0x45499a
xor eax, eax
jmp 0x454a4d
cmp eax, 4
jne 0x45494d
mov eax, dword [ebp + 0xc]
jmp 0x454992
mov dword [ebp + 8], eax
push edi
and dword [ebp + 8], 0x80000000
push dword [ebp + 0xc]
je 0x454964
call fcn.004547e4
jmp 0x454969
call fcn.00454742
pop ecx
cmp eax, edi
pop ecx
je 0x45499a
push edi
cmp dword [ebp + 8], edi
push dword [ebx + 4]
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
je 0x45498c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x454992
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x4549a6
mov dword [esi + 8], 1
jmp 0x454a3e
push esi
call fcn.00454adf
cmp dword [esi + 8], edi
pop ecx
jne 0x454a2f
cmp dword [esi + 0x34], edi
mov ebx, 0x4000
jne 0x454a0d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x454a0d
mov dword [esi + 8], 2
jmp 0x454a0d
push ebx
push dword [esi + 0x34]
push esi
call fcn.00452be6
add esp, 0xc
cmp eax, edi
mov dword [ebp + 8], eax
je 0x454a12
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 0x454a06
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
je 0x454a0d
mov dword [esi + 8], 3
cmp dword [esi + 8], edi
je 0x4549d4
cmp dword [esi + 8], edi
mov ebx, dword [ebp + 0x10]
jne 0x454a2f
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 0x454a3e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00454a52
mov eax, dword [esi + 8]
pop ecx
jmp 0x454a4d
push 9
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45670a
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x482da0
call fcn.0047bfa0
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.004562f6
and dword [ebp - 4], 0
cmp dword [esi + 0x1c], 0
je 0x456746
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 0x4564db
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 0x456783
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 0x4567a8
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 0x4567cd
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.00428393
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x456e83
Capabilities:
Create thread

Disassembly:
mov eax, 0x482e18
call fcn.0047bfa0
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.004283a9
lea eax, [ebx + 0x8c]
mov esi, 0x4ae510
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 0x4a2ffc
push eax
movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x457032
mov esi, str.S:Ammyy_sourcesmain_soundAudioIn.cpp
push str.StartSound__1
push esi
mov edi, 0x4ae590
push 2
push edi
call fcn.0041c880
add esp, 0x10
cmp dword [ebx + 0x80], 0
je 0x456f19
lea eax, [ebp - 0x20]
push str.AudioIn::Start:_Sound_Capture_thread_is_already_active
push eax
call fcn.0042777f
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
cmp eax, 0x3e8
mov dword [ebx], eax
jb 0x456f2c
cmp eax, 0xbb80
jbe 0x456f3e
push 0x42
push esi
lea ecx, [ebp - 0x30]
call fcn.00425667
mov ecx, eax
call fcn.00425773
mov ax, word [ebx + 4]
cmp ax, 8
je 0x456f60
cmp ax, 0x10
je 0x456f60
push 0x43
push esi
lea ecx, [ebp - 0x30]
call fcn.00425667
mov ecx, eax
call fcn.00425773
mov ax, word [ebx + 6]
cmp ax, 1
je 0x456f82
cmp ax, 2
je 0x456f82
push 0x44
push esi
lea ecx, [ebp - 0x30]
call fcn.00425667
mov ecx, eax
call fcn.00425773
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.00457157
push str.StartSound__2
push esi
push 2
push edi
call fcn.0041c880
add esp, 0x10
mov ecx, ebx
mov byte [ebp - 4], 1
push 0x1f40
push 3
push 0
call fcn.00457953
push str.StartSound__3
push esi
push 2
push edi
call fcn.0041c880
add esp, 0x10
xor esi, esi
mov dword [ebx + 0x84], esi
push esi
push esi
push ebx
push 0x4574ba
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 0x457032
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.0042777f
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004283bd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4