joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4558ea
Capabilities:
Move file

Disassembly:
mov eax, 0x48edbc
call fcn.004874e0
sub esp, 0x54
push esi
mov esi, ecx
cmp byte [esi + 0x40], 0
jne 0x45591e
lea eax, [ebp - 0x48]
push str.FileManager_is_forbidden
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0x48]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [0x4c2676]
lea ecx, [ebp - 0x3c]
push eax
call fcn.00420d2f
mov ecx, dword [esi + 0xc]
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push 2
push eax
call fcn.0042d73e
movzx eax, word [ebp - 0x10]
push eax
lea ecx, [ebp - 0x60]
call fcn.0043210a
movzx eax, word [ebp - 0x10]
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.0042dacc
mov ecx, dword [esi + 0xc]
push eax
call fcn.0042d73e
movzx eax, word [ebp - 0x10]
push eax
lea ecx, [ebp - 0x60]
call fcn.00432a2b
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x60]
push eax
call fcn.00432557
push 0xffffffffffffffff
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00435b75
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c7bd
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00433d8a
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004556c4
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x60]
push eax
call fcn.00432557
push 0xffffffffffffffff
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00435b75
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040c7bd
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 6
call fcn.00435674
add esp, 0x18
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.004353fc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call fcn.00433d8a
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x60]
push eax
call fcn.00432557
push 0xffffffffffffffff
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00435b75
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040c7bd
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xb
call fcn.00435674
add esp, 0x18
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.004353fc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.00433d8a
mov eax, dword [ebp - 0x3c]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x455a82
lea ecx, [ebp - 0x1c]
call fcn.00435b75
push eax
lea ecx, [ebp - 0x20]
call fcn.00435b75
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x455a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x60]
call fcn.004321b2
push 0x46
lea ecx, [ebp - 0x60]
call fcn.004322ad
push dword [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.004322cb
push 1
lea ecx, [ebp - 0x60]
push dword [ebp - 0x54]
call fcn.00432a3c
mov ecx, dword [esi + 0xc]
push eax
call fcn.0042d448
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.004353fc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.004353fc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004353fc
and byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00432196
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00420d63
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x455afe
Capabilities:
Create directory

Disassembly:
mov eax, 0x48ede8
call fcn.004874e0
sub esp, 0x38
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x40], bl
jne 0x455b34
lea eax, [ebp - 0x2c]
push str.FileManager_is_forbidden
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [0x4c2676]
push edi
push eax
lea ecx, [ebp - 0x20]
call fcn.00420d2f
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x10]
push 2
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.0042d73e
movzx eax, word [ebp - 0x10]
push eax
lea ecx, [ebp - 0x44]
call fcn.0043210a
movzx eax, word [ebp - 0x10]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0042dacc
mov ecx, dword [esi + 0xc]
push eax
call fcn.0042d73e
movzx eax, word [ebp - 0x10]
push eax
lea ecx, [ebp - 0x44]
call fcn.00432a2b
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x44]
push eax
call fcn.004324f4
movzx ecx, word [ebp - 0x10]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00435b75
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c7bd
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00433d8a
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004556c4
mov edi, dword [ebp - 0x20]
cmp edi, ebx
jne 0x455bee
push ebx
lea ecx, [ebp - 0x14]
call fcn.00435b75
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x455bee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x44]
call fcn.004321b2
push 0x46
lea ecx, [ebp - 0x44]
call fcn.004322ad
push edi
lea ecx, [ebp - 0x44]
call fcn.004322cb
push 1
lea ecx, [ebp - 0x44]
push dword [ebp - 0x38]
call fcn.00432a3c
mov ecx, dword [esi + 0xc]
push eax
call fcn.0042d448
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004353fc
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00432196
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00420d63
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x456814
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 0x456851
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.Error__d_GetFileSizeEx__
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
leave
ret

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

Disassembly:
mov eax, 0x48eeec
call fcn.004874e0
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 0x4568d8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x45689f
or edx, ebx
mov eax, edx
jmp 0x45694a
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00433e42
and dword [ebp - 4], 0
mov ecx, eax
call fcn.00435b75
push eax
call esi
push eax
lea eax, [ebp - 0x28]
push str.Error__d_while_open_file__s
push eax
call fcn.00430892
add esp, 0x10
lea eax, [ebp - 0x28]
push 0x49c754
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 0x456923
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00433e42
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00435b75
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.00430892
add esp, 0x10
lea eax, [ebp - 0x28]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x456944
push 0x38
push str.S:Ammyy_sources_targetTrFmFileSys.cpp
lea ecx, [ebp - 0x1c]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
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 0x456958
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x48ef10
call fcn.004874e0
sub esp, 0x258
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.00435475
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0045711f
test al, al
pop ecx
jne 0x456993
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00435afc
lea eax, [ebp - 0x14]
push 0x4bb620
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004356e0
add esp, 0xc
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00435b75
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x10]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.004353fc
cmp edi, 0xffffffff
jne 0x4569eb
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.004355d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x456ab1
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004356e0
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
call fcn.00456ae6
add esp, 0x10
test al, al
jne 0x456a76
test byte [ebp - 0x264], 1
je 0x456a37
mov eax, dword [ebp - 0x264]
lea ecx, [ebp - 0x10]
and al, 0xfe
push eax
call fcn.00435b75
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x264], 0x10
lea ecx, [ebp - 0x10]
je 0x456a66
push dword [ebp + 0xc]
call fcn.00435b75
push eax
call fcn.00456958
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x456a76
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004353fc
jmp 0x456ab1
call fcn.00435b75
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x456ace
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004353fc
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4569eb
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4569d3
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004353fc
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.004355d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x456a59
Function at 0x456eb5
Capabilities:
Create directory

Disassembly:
mov eax, 0x48ef94
call fcn.004874e0
push ebx
push esi
push edi
lea ecx, [ebp + 8]
push dword [ebp + 8]
call fcn.00435475
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
mov dword [ebp - 4], ebx
call fcn.004358fb
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 0x456f2b
add esi, 2
push 0x5c
push esi
call edi
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x456f2b
push ebx
lea ecx, [ebp + 8]
mov word [esi], bx
call fcn.00435b75
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x456f22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x456f29
mov word [esi], 0x5c
jmp 0x456eee
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004353fc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x457145
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 0x4571eb
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
cmp ebx, edi
jne 0x45719f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esi + 4], eax
ja 0x457256
push 0x168
push str.S:Ammyy_sources_targetTrFmFileSys.cpp
lea ecx, [ebp - 0x10]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
jmp 0x457256
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 [0x4b9a3c]
mov dword [ebp - 8], eax
mov eax, dword [0x4b9a40]
mov dword [ebp - 4], eax
mov eax, ebx
mov ecx, edi
shr eax, cl
test al, 1
je 0x4571d9
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 0x4571bd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
jmp 0x4572ae
push eax
lea eax, [ebp - 0xa60]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0xa60]
push 0x4bb620
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 0x45725e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [esi + 4], eax
jne 0x457256
mov eax, dword [esi + 8]
cmp word [eax], di
jbe 0x457256
cmp word [eax + 2], 0x3a
jne 0x457256
cmp word [eax + 4], 0x5c
jne 0x457256
cmp word [eax + 6], di
jne 0x457256
mov dword [esi + 4], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
jmp 0x4572ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [ebp - 0x234]
push eax
call fcn.00456ae6
test al, al
pop ecx
jne 0x457295
test byte [ebp - 0x25f], 4
je 0x457287
test byte [ebp - 0x260], 0x10
jne 0x457295
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 0x457264
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x457cbc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x2c
push ebx
push esi
push edi
jb 0x457d24
mov eax, dword [ebp + 8]
cmp byte [eax], 0x16
je 0x457cda
push 0xfffffffffffffffe
jmp 0x457e74
inc eax
cmp word [eax], 0x103
je 0x457ce9
push 0xfffffffffffffffd
jmp 0x457e74
push 2
pop edx
add eax, edx
movzx cx, byte [eax]
movzx si, byte [eax + 1]
shl ecx, 8
add ecx, esi
add eax, edx
cmp cx, 0x3d
jb 0x457e72
cmp cx, 0xff
ja 0x457e72
movzx esi, cx
mov dword [ebp - 8], esi
lea ecx, [esi + 5]
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], ecx
jae 0x457d2c
or eax, 0xffffffff
jmp 0x457e75
cmp word [eax], 1
je 0x457d39
push 0xfffffffffffffffb
jmp 0x457e74
add eax, edx
movzx cx, byte [eax]
movzx di, byte [eax + 1]
shl ecx, 8
add ecx, edi
add eax, edx
movzx ecx, cx
add ecx, 4
cmp ecx, esi
je 0x457d5c
push 0xfffffffffffffffa
jmp 0x457e74
cmp word [eax], 0x303
je 0x457d6a
push 0xfffffffffffffff9
jmp 0x457e74
add eax, edx
mov ecx, 0xccff0dee
mov dword [ebp - 4], eax
xor esi, esi
xor ecx, dword [eax + esi*4]
inc esi
cmp esi, 7
jl 0x457d76
add eax, 0x1c
cmp ecx, dword [eax]
je 0x457d8d
push 0xfffffffffffffff8
jmp 0x457e74
add eax, 4
mov cl, byte [eax]
cmp cl, 0x20
mov byte [ebp + 0xf], cl
jbe 0x457da1
push 0xfffffffffffffff7
jmp 0x457e74
movzx ebx, cl
lea esi, [eax + ebx + 1]
cmp dword [esi], 0x2fc00400
je 0x457db7
push 0xfffffffffffffff6
jmp 0x457e74
add esi, 4
cmp dword [esi], 0x13500
je 0x457dc9
push 0xfffffffffffffff5
jmp 0x457e74
add esi, 6
cmp word [esi], 0xdfe
je 0x457dda
push 0xfffffffffffffff4
jmp 0x457e74
add esi, edx
movzx di, byte [esi]
movzx ax, byte [esi + 1]
shl edi, 8
add edi, eax
add esi, edx
movzx eax, di
mov dword [ebp - 0x10], eax
add eax, ebx
mov dword [ebp - 0x14], eax
add eax, 0x3d
cmp eax, dword [ebp - 8]
je 0x457e03
push 0xfffffffffffffff3
jmp 0x457e74
push 0x20
push dword [ebp - 4]
push dword [ebp + 0x14]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0xf], 0
jbe 0x457e30
mov eax, dword [ebp - 4]
push ebx
add eax, 0x21
push eax
mov eax, dword [ebp + 0x14]
add eax, 0x20
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov al, byte [ebp + 0xf]
mov edx, dword [ebp - 0xc]
mov byte [ecx + 0x40], al
mov ecx, dword [ebp + 0x10]
test al, al
mov dword [ecx], edx
jbe 0x457e56
mov eax, dword [ebp + 8]
push ebx
lea ecx, [eax + 0x2c]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
test di, di
jbe 0x457e6d
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add ebx, eax
push esi
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x457e75
push 0xfffffffffffffffc
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x458cf2
Capabilities:
Lock the desktop

Disassembly:
mov eax, 0x48f2a0
call fcn.004874e0
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
lea eax, [edi + 0x1c]
push eax
call fcn.004315f1
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [edi + 4]
mov bx, word [esi + 0x80]
mov eax, dword [ecx]
call dword [eax + 0x14]
movsx ecx, bx
lea eax, [eax + ecx*4]
cmp dword [eax], esi
je 0x458d4e
lea eax, [ebp - 0x20]
push str.in_RemoveClient__1
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
and dword [eax], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00431605
mov eax, dword [esi + 0x38]
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 + 0x318], ebx
cmp byte [0x4c26a8], 0
je 0x458da5
cmp dword [ebp + 8], 5
jne 0x458da5
push ebx
push 5
call fcn.00415fd3
pop ecx
test al, al
pop ecx
jne 0x458da5
push 0
push 5
call fcn.00415fd3
pop ecx
test al, al
pop ecx
jne 0x458da5
call dword [sym.imp.USER32.dll_LockWorkStation]
push str.RemoveClient___done
push str.S:Ammyy_sources_targetTrMain.cpp
push 2
push 0x4c2700
call fcn.00420f3e
add esp, 0x10
lea eax, [edi + 0x1c]
lea ecx, [ebp - 0x14]
push eax
call fcn.004315f1
dec dword [edi]
lea ecx, [ebp - 0x14]
call fcn.00431605
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4593e6
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, 0x4c1e80
pop ecx
push 5
push eax
push eax
lea eax, [ebp - 0x104]
push eax
push 0x4b4584
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
leave
ret
Function at 0x45df98
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 0x45dfd4
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.00430892
add esp, 0x10
lea eax, [ebp - 0xc]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x45e171
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 0x45e194
mov ecx, eax
test ecx, ecx
mov dword [esi + 0x78], ecx
je 0x45e321
xor edi, edi
cmp dword [esi + 0x6c], edi
jne 0x45e22e
mov eax, dword [esi + 0x88]
cmp eax, edi
je 0x45e22e
mov ebx, 0x4000
cmp eax, ebx
jae 0x45e1c7
mov ebx, eax
cmp ebx, edi
je 0x45e329
push ebx
push dword [esi + 0x64]
push esi
call fcn.0045fc69
add esp, 0xc
test eax, eax
je 0x45e33f
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 0x45e22e
test ebx, ebx
jbe 0x45e22e
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.0045e459
inc edi
pop ecx
cmp edi, ebx
pop ecx
jb 0x45e1f5
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x6c]
cmp eax, ecx
jbe 0x45e23d
mov eax, ecx
test eax, eax
je 0x45e26c
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 0x45e26c
cmp dl, byte [esi + 0xa0]
jne 0x45e348
cmp word [esi + 0x3e], 0
jne 0x45e2c1
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x6c]
cmp eax, edi
jae 0x45e27f
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.0045e351
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 0x45e313
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.0045e4ad
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
pop ecx
je 0x45e2e3
cmp eax, 1
jne 0x45e334
mov edi, dword [esi + 0x7c]
sub edi, ebx
lea ebx, [esi + 0x84]
push edi
push dword [ebp + 8]
push dword [ebx]
call fcn.0045e351
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 0x45e321
test eax, eax
je 0x45e321
cmp dword [esi + 0x78], 0
jne 0x45e19f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x84]
cmp eax, dword [esi + 0x44]
je 0x45e33b
mov dword [esi + 8], 0x12
xor eax, eax
jmp 0x45e324
mov dword [esi + 8], 7
jmp 0x45e33b
mov dword [esi + 8], 0x13
jmp 0x45e33b
Function at 0x45e351
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 0x45e432
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 + 0x498f58]
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 + 0x498f58]
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 + 0x498f58]
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 + 0x498f58]
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 + 0x498f58]
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 + 0x498f58]
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 + 0x498f58]
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 + 0x498f58]
xor eax, esi
inc ecx
dec edi
jne 0x45e374
pop ebx
cmp dword [ebp + 0x10], 0
je 0x45e453
movzx edi, byte [ecx]
mov esi, eax
and esi, edx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x498f58]
xor eax, esi
inc ecx
dec dword [ebp + 0x10]
jne 0x45e438
pop edi
pop esi
not eax
pop ebp
ret

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

Function at 0x45fc69
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test byte [esi], 1
jne 0x45fc9d
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 0x45fc98
and dword [ebp + 0x10], eax
mov dword [esi + 8], 7
mov eax, dword [ebp + 0x10]
jmp 0x45fcca
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 0x45fcb2
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