joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446193
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x1c
push 0
push esi
call sub.MSVCRT.dll_memset
movzx ax, byte [ebp + 0xc]
mov word [esi + 4], ax
mov al, byte [ebp + 0x10]
add esp, 0xc
mov dword [esi], 1
neg al
sbb eax, eax
push 0
and al, 0xfe
inc eax
inc eax
mov dword [esi + 8], eax
movzx eax, byte [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp byte [ebp + 0x14], 0
mov word [esi + 6], ax
je 0x4461df
or dword [esi + 8], 1
pop esi
pop ebp
ret

Function at 0x44651b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4869d8
call fcn.004801f0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0044f37b
xor ebx, ebx
lea ecx, [esi + 0x88]
mov dword [ebp - 4], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
call fcn.0045a553
lea ecx, [esi + 0xa4]
mov byte [ebp - 4], 1
call fcn.0045a553
lea ecx, [esi + 0xcc]
mov byte [ebp - 4], 2
call fcn.0045bcb3
lea ecx, [esi + 0x18c]
mov byte [ebp - 4], 3
call fcn.0045b016
lea edi, [esi + 0x240]
mov byte [ebp - 4], 4
lea ecx, [edi + 8]
call fcn.0042f0da
mov dword [edi], 0x490998
mov dword [edi + 4], ebx
mov byte [esi + 0x450], bl
lea ecx, [esi + 0x454]
mov byte [ebp - 4], 6
call fcn.0042c0bb
push 0x4ada70
push str.S:Ammyy_sources_targetTrClient.cpp
push 2
push 0x4b5b78
mov byte [ebp - 4], 7
mov dword [esi], 0x490974
call fcn.0041e1ee
push 0x3bd8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, eax
add esp, 0x14
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
mov byte [ebp - 4], 8
je 0x4465e8
call fcn.004324c3
jmp 0x4465ea
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 0xc0], ebx
mov byte [esi + 0xa0], bl
mov byte [esi + 0xbc], bl
mov byte [esi + 0xbd], bl
mov dword [esi + 0xc8], ebx
mov byte [esi + 0xc5], bl
mov word [esi + 0x84], bx
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0xc4], bl
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x447730
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x486ca8
call fcn.004801f0
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push esi
lea ecx, [ebp - 0x30]
lea eax, [eax + eax + 1]
push eax
call fcn.0042d769
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0042e949
mov edx, dword [ebp + 0xc]
mov esi, eax
mov cl, byte [edx]
inc edx
cmp cl, 0xa
jne 0x44776b
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
inc eax
test cl, cl
jne 0x44775f
push 0xffffffffffffffff
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.0040c3bf
add esp, 0xc
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4477b0
lea eax, [ebp - 0x18]
push str.Failed_to_open_clipboard
push eax
call fcn.0042c02a
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4477de
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [ebp - 0x18]
push str.Failed_to_empty_clipboard
push eax
call fcn.0042c02a
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
push edi
lea ecx, [ebp + 0x10]
call fcn.004311a4
lea edi, [eax + eax + 2]
push edi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x44782b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
lea ecx, [ebp + 0x10]
mov ebx, eax
call fcn.004311c6
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
pop edi
jne 0x447854
lea eax, [ebp - 0x18]
push str.Failed_to_close_clipboard
push eax
call fcn.0042c02a
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00430a4d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0042d7f5
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x44792a
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, 0x486cbc
call fcn.004801f0
sub esp, 0x18
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov ecx, dword [edi + 0x588]
cmp eax, ecx
je 0x4479f6
lea eax, [edi + 0x631]
cmp byte [eax], 0
jne 0x447962
mov byte [eax], 1
jmp 0x4479f6
cmp dword [edi + 0x590], 0
je 0x4479f6
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4479f6
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x447990
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4479f6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0x24]
mov ebx, eax
call fcn.0042d733
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push 1
push eax
push ebx
call fcn.0040c2db
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x24]
call fcn.0042e949
mov esi, eax
mov edx, eax
pop ebx
mov cl, byte [esi]
inc esi
cmp cl, 0xd
je 0x4479cf
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4479cf
mov ecx, dword [edi + 0x584]
push eax
call fcn.00446995
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0042d7f5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x44a695
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x40]
push ebx
push esi
mov esi, dword [edx + 4]
mov ebx, dword [edx]
push edi
mov edi, dword [ecx + 0x48]
imul eax, ebx
imul edi, esi
add eax, edi
mov edi, dword [edx + 8]
mov edx, dword [edx + 0xc]
add eax, dword [ecx + 8]
sub edx, esi
mov esi, dword [ecx + 0x44]
sub edi, ebx
sub esi, edi
test edx, edx
jle 0x44a71f
shl esi, 2
mov dword [ebp - 8], esi
mov dword [ebp - 4], edx
test edi, edi
jle 0x44a717
mov dword [ebp + 8], edi
mov edx, dword [eax]
add eax, 4
mov esi, edx
mov ebx, edx
shr esi, 0xd
and esi, 0xff
and ebx, 0xff
xor esi, ebx
mov esi, dword [ecx + esi*4 + 0x8a8]
jmp 0x44a703
cmp dword [esi + 8], edx
je 0x44a726
mov esi, dword [esi]
test esi, esi
jne 0x44a6fc
or dl, 0xff
mov esi, dword [ebp + 0xc]
inc dword [ebp + 0xc]
dec dword [ebp + 8]
mov byte [esi], dl
jne 0x44a6d9
add eax, dword [ebp - 8]
dec dword [ebp - 4]
jne 0x44a6d2
pop edi
pop esi
pop ebx
leave
ret 0xc
mov dl, byte [esi + 4]
jmp 0x44a70a
Function at 0x44d623
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x486f2a
call fcn.004801f0
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
mov dword [ebp - 0x10], esi
call fcn.0042e914
mov dword [esi], 0x488c60
push fcn.0040da9d
push 0x41a5a2
push 5
lea eax, [esi + 0x30]
push 0xc
push eax
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call fcn.004803d3
lea edi, [esi + 0x6c]
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0042e914
mov ecx, dword [ebp - 0xc]
mov dword [edi], 0x488c58
mov dword [esi], 0x4909d0
mov byte [esi + 0x10], bl
mov dword [esi + 0xc], 0xad
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x44fa23
Capabilities:
Move file

Disassembly:
mov eax, 0x487124
call fcn.004801f0
sub esp, 0x4c
push esi
mov esi, ecx
cmp byte [esi + 0x48], 0
jne 0x44fa57
lea eax, [ebp - 0x40]
push str.FileManager_is_forbidden
push eax
call fcn.0042c02a
pop ecx
lea eax, [ebp - 0x40]
pop ecx
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [0x4b5b06]
push ebx
push edi
push eax
lea ecx, [ebp - 0x34]
call fcn.0041dffe
mov ecx, dword [esi + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push 2
push edx
mov dword [ebp - 4], edi
call dword [eax + 4]
movzx eax, word [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
call fcn.0042d769
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
mov ebx, dword [eax]
movzx eax, word [ebp - 0x10]
push eax
call fcn.0042e949
mov ecx, dword [esi + 0xc]
push eax
call dword [ebx + 4]
movzx eax, word [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
call fcn.0042e021
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x58]
push eax
call fcn.0042db83
or ebx, 0xffffffff
mov ecx, eax
push ebx
mov byte [ebp - 4], 2
call fcn.004311c6
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c3bf
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0042f3db
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0044f7fd
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
call fcn.0042db83
push ebx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004311c6
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040c3bf
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 6
call fcn.00430cc5
add esp, 0x18
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.00430a4d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0042f3db
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x58]
push eax
call fcn.0042db83
push ebx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004311c6
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c3bf
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xb
call fcn.00430cc5
add esp, 0x18
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
call fcn.00430a4d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call fcn.0042f3db
lea ecx, [ebp - 0x18]
call fcn.004311c6
push eax
lea ecx, [ebp - 0x1c]
call fcn.004311c6
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, edi
jne 0x44fbb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x58]
call fcn.0042d811
push 0x46
lea ecx, [ebp - 0x58]
call fcn.0042d908
push edi
lea ecx, [ebp - 0x58]
call fcn.0042d926
mov eax, dword [esi + 0xc]
push 1
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x58]
mov edi, dword [eax]
call fcn.0042e032
mov ecx, dword [esi + 0xc]
push eax
call dword [edi]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00430a4d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00430a4d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00430a4d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0042d7f5
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.0041e01b
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x44fc32
Capabilities:
Create directory

Disassembly:
mov eax, 0x487150
call fcn.004801f0
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x48], bl
jne 0x44fc68
lea eax, [ebp - 0x28]
push str.FileManager_is_forbidden
push eax
call fcn.0042c02a
pop ecx
lea eax, [ebp - 0x28]
pop ecx
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [0x4b5b06]
push edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041dffe
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], ebx
lea edx, [ebp - 0x10]
push 2
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], ebx
call dword [eax + 4]
movzx eax, word [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042d769
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
mov edi, dword [eax]
movzx eax, word [ebp - 0x10]
push eax
call fcn.0042e949
mov ecx, dword [esi + 0xc]
push eax
call dword [edi + 4]
movzx eax, word [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042e021
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x40]
push eax
call fcn.0042db20
movzx ecx, word [ebp - 0x10]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004311c6
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c3bf
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0042f3db
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0044f7fd
push ebx
lea ecx, [ebp - 0x14]
call fcn.004311c6
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
je 0x44fd1a
xor edi, edi
jmp 0x44fd22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x40]
call fcn.0042d811
push 0x46
lea ecx, [ebp - 0x40]
call fcn.0042d908
push edi
lea ecx, [ebp - 0x40]
call fcn.0042d926
mov eax, dword [esi + 0xc]
push 1
push dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
mov edi, dword [eax]
call fcn.0042e032
mov ecx, dword [esi + 0xc]
push eax
call dword [edi]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00430a4d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.0042d7f5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041e01b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x450936
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x450973
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.Error__d_GetFileSizeEx__
push eax
call fcn.0042c02a
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
leave
ret

Function at 0x45097b
Capabilities:
Check if file exists
Get file size

Disassembly:
mov eax, 0x487254
call fcn.004801f0
sub esp, 0x1c
push ebx
push esi
push 0
push 0x80
xor esi, esi
push 3
push 0
inc esi
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4509fa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x4509c1
or edx, ebx
mov eax, edx
jmp 0x450a6c
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0042f493
and dword [ebp - 4], 0
mov ecx, eax
call fcn.004311c6
push eax
call esi
push eax
lea eax, [ebp - 0x28]
push str.Error__d_while_open_file__s
push eax
call fcn.0042c02a
add esp, 0x10
lea eax, [ebp - 0x28]
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x450a45
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0042f493
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.004311c6
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.Error__d_in_GetFileSizeEx___for__s
push eax
call fcn.0042c02a
add esp, 0x10
lea eax, [ebp - 0x28]
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x450a66
push 0x38
push str.S:Ammyy_sources_targetTrFmFileSys.cpp
lea ecx, [ebp - 0x1c]
call fcn.00429ea1
mov ecx, eax
call fcn.00429fad
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x450a7a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x487278
call fcn.004801f0
sub esp, 0x258
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.00430ac6
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00451241
test al, al
pop ecx
jne 0x450ab5
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0043114d
lea eax, [ebp - 0x14]
push 0x4aebf4
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00430d31
add esp, 0xc
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.004311c6
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x10]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00430a4d
cmp edi, 0xffffffff
jne 0x450b0d
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.00430c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x450bd3
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00430d31
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
call fcn.00450c08
add esp, 0x10
test al, al
jne 0x450b98
test byte [ebp - 0x264], 1
je 0x450b59
mov eax, dword [ebp - 0x264]
lea ecx, [ebp - 0x10]
and al, 0xfe
push eax
call fcn.004311c6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x264], 0x10
lea ecx, [ebp - 0x10]
je 0x450b88
push dword [ebp + 0xc]
call fcn.004311c6
push eax
call fcn.00450a7a
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x450b98
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00430a4d
jmp 0x450bd3
call fcn.004311c6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x450bf0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00430a4d
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x450b0d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x450af5
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00430a4d
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.00430c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x450b7b
Function at 0x450fd7
Capabilities:
Create directory

Disassembly:
mov eax, 0x4872fc
call fcn.004801f0
push ebx
push esi
push edi
lea ecx, [ebp + 8]
push dword [ebp + 8]
call fcn.00430ac6
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
mov dword [ebp - 4], ebx
call fcn.00430f4c
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 0x45104d
add esi, 2
push 0x5c
push esi
call edi
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x45104d
push ebx
lea ecx, [ebp + 8]
mov word [esi], bx
call fcn.004311c6
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x451044
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45104b
mov word [esi], 0x5c
jmp 0x451010
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00430a4d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x451267
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 0x45130d
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
cmp ebx, edi
jne 0x4512c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esi + 4], eax
ja 0x451378
push 0x168
push str.S:Ammyy_sources_targetTrFmFileSys.cpp
lea ecx, [ebp - 0x10]
call fcn.00429ea1
mov ecx, eax
call fcn.00429fad
jmp 0x451378
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 [0x4ad194]
mov dword [ebp - 8], eax
mov eax, dword [0x4ad198]
mov dword [ebp - 4], eax
mov eax, ebx
mov ecx, edi
shr eax, cl
test al, 1
je 0x4512fb
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 0x4512df
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
jmp 0x4513d0
push eax
lea eax, [ebp - 0xa60]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0xa60]
push 0x4aebf4
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 0x451380
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [esi + 4], eax
jne 0x451378
mov eax, dword [esi + 8]
cmp word [eax], di
jbe 0x451378
cmp word [eax + 2], 0x3a
jne 0x451378
cmp word [eax + 4], 0x5c
jne 0x451378
cmp word [eax + 6], di
jne 0x451378
mov dword [esi + 4], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
jmp 0x4513d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [ebp - 0x234]
push eax
call fcn.00450c08
test al, al
pop ecx
jne 0x4513b7
test byte [ebp - 0x25f], 4
je 0x4513a9
test byte [ebp - 0x260], 0x10
jne 0x4513b7
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 0x451386
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4529d3
Capabilities:
Lock the desktop

Disassembly:
mov eax, 0x4875c4
call fcn.004801f0
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
lea eax, [edi + 0x1c]
push eax
call fcn.0042ccf6
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 0x452a2f
lea eax, [ebp - 0x20]
push str.in_RemoveClient__1
push eax
call fcn.0042c02a
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
and dword [eax], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042cd0a
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 [0x4b5b38], 0
je 0x452a86
cmp dword [ebp + 8], 5
jne 0x452a86
push ebx
push 5
call fcn.00414915
pop ecx
test al, al
pop ecx
jne 0x452a86
push 0
push 5
call fcn.00414915
pop ecx
test al, al
pop ecx
jne 0x452a86
call dword [sym.imp.USER32.dll_LockWorkStation]
push str.RemoveClient___done
push str.S:Ammyy_sources_targetTrMain.cpp
push 2
push 0x4b5b78
call fcn.0041e1ee
add esp, 0x10
lea eax, [edi + 0x1c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0042ccf6
dec dword [edi]
lea ecx, [ebp - 0x14]
call fcn.0042cd0a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x453003
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, 0x4b5350
pop ecx
push 5
push eax
push eax
lea eax, [ebp - 0x104]
push eax
push 0x4a88b4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
leave
ret
Function at 0x456c80
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 0x456cbc
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.0042c02a
add esp, 0x10
lea eax, [ebp - 0xc]
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret