joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439b70
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4e37f4]
push ebx
push esi
push edi
lea eax, [eax + eax*4]
add eax, 0xa
shl eax, 5
push eax
call fcn.0049ee1d
add esp, 4
mov dword [0x4e7ca8], eax
test eax, eax
jne 0x439b97
pop edi
pop esi
pop ebx
ret
mov esi, dword [0x4e37f8]
mov edi, eax
inc dword [0x4e7cbc]
mov ecx, 0x28
push 0x4045f0
push 0x4ef6d80
push 0xe
push dword [0x4e7ccc]
rep movsd dword es:[edi], dword [esi]
mov dword [0x4e37f8], eax
mov dword [eax + 0x58], 0
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x4e8f30], 0
jne 0x439be3
mov ebx, 1
jmp 0x439c9c
mov eax, dword [0x4e37f8]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov byte [eax + 0x53], 0
call esi
mov ecx, dword [0x4e37f8]
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x44], 0x64
mov byte [0x4e9605], 1
call esi
mov ecx, dword [0x4e8eac]
mov dword [0x4e961c], eax
cmp ecx, dword [0x4e8eb0]
jne 0x439c2b
call fcn.0040709e
mov ecx, dword [0x4e8eac]
cmp ecx, dword [0x4e8ea8]
jb 0x439c40
mov eax, dword [0x4e9574]
mov dword [ecx], eax
mov ecx, dword [0x4e8eac]
add ecx, 0xc
mov dword [0x4e8eac], ecx
push 0
push 0
mov dword [ecx], 0
mov dword [ecx + 4], 0x4cff28
mov dword [ecx + 8], 0
mov ecx, dword [0x4e8f30]
push 1
call fcn.004487a0
mov ecx, dword [0x4e8eac]
mov ebx, eax
sub ecx, 0xc
mov dword [0x4e8eac], ecx
cmp ecx, dword [0x4e8ea8]
jb 0x439c95
mov ecx, dword [ecx]
mov dword [0x4e8ebc], ecx
mov dword [0x4e9574], ecx
mov byte [0x4e9605], 0
mov esi, dword [0x4e37f8]
dec dword [0x4e7cbc]
mov edi, dword [esi + 0x30]
test edi, edi
je 0x439ce7
cmp dword [edi + 8], 5
jne 0x439cbd
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x439ccd
push eax
call fcn.0049ee02
add esp, 4
push 0x20
push dword [esi + 0x30]
call fcn.0049b408
mov dword [esi + 0x30], 0
add esp, 8
mov esi, dword [0x4e37f8]
pop edi
mov dword [esi + 0x3c], SysReAllocStringLen
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43a300
Capabilities:
Check if file exists
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
cmp esi, 0xfffffffe
je 0x43a330
mov eax, dword [0x4e37f8]
lea ecx, [edi + 0x30]
mov dword [0x4e37f0], 0
mov byte [eax + 0x50], 0
call fcn.0043a280
lea ecx, [edi + 0x10]
call fcn.0043a2d0
push 0
push esi
mov ecx, 0x4e8ea8
call fcn.0040ac9b
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
push esi
call fcn.004a9ed7
pop edi
pop esi
Function at 0x4433b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10004
call fcn.004b5610
push edi
push dword [esp + 0x10014]
lea eax, [esp + 8]
push dword [esp + 0x10014]
push 0x4d74b4
push 0x8001
push eax
call fcn.004816a0
add esp, 0x14
mov edi, eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x443436
test al, 0x10
je 0x443436
lea ecx, [edi*2 + 0x204]
call fcn.0047e400
mov ecx, eax
test ecx, ecx
je 0x44344d
push esi
mov esi, dword [esp + 0x10010]
lea eax, [edi*2 + 2]
push eax
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esi], ecx
call fcn.0049c940
add esp, 0xc
mov dword [esi + 4], edi
pop esi
pop edi
add esp, 0x10004
ret 0xc
mov eax, dword [esp + 0x1000c]
pop edi
mov dword [eax], 0x4cdea8
add esp, 0x10004
ret 0xc
call fcn.0040dba0
int3

Function at 0x443460
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x208
cmp dword [0x4e9f78], 0
mov eax, dword [esp + 0x214]
push ebx
push ebp
mov ebx, ecx
mov byte [eax], 0
mov eax, dword [esp + 0x220]
push esi
mov dword [esp + 0x14], ebx
mov byte [eax], 0
jne 0x4434ed
push 0x4d7484
push dword [ebx + 0x6b8]
push 0x4e9f78
call fcn.004433b0
lea eax, [esp + 0x10]
push eax
push 0
push 0x4000
push 0x4b7850
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xor esi, esi
test eax, eax
push 0x4d7490
cmovns esi, dword [esp + 0x14]
push esi
push 0x4e9f80
call fcn.004433b0
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x4d7484
push dword [ebx + 0x6c8]
push 0x4e9f88
call fcn.004433b0
mov ebx, dword [esp + 0x21c]
mov ebp, dword [esp + 0x218]
test ebx, ebx
jne 0x443513
mov ebx, ebp
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x443504
sub ebx, ecx
sar ebx, 1
cmp ebx, 0xfd
ja 0x44360f
mov edx, ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
push edi
nop
xor esi, esi
mov ecx, dword [esi*8 + 0x4e9f78]
cmp word [ecx], 0
je 0x44358b
mov eax, dword [esi*8 + 0x4e9f7c]
lea edi, [ebx + ebx]
push edi
push edx
lea eax, [ecx + eax*2]
push eax
call fcn.0049c940
movq xmm0, qword [0x4d5d94]
add esp, 0xc
movq qword [edi + eax], xmm0
lea ecx, [edi + eax]
mov ax, word [0x4d5d9c]
mov word [ecx + 8], ax
push dword [esi*8 + 0x4e9f78]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x443587
test al, 0x10
je 0x4435e2
mov edx, dword [esp + 0x10]
inc esi
cmp esi, 3
jl 0x443532
push 0x5f
push ebp
call fcn.0049c891
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x44360e
sub ebx, ebp
sar ebx, 1
cmp ebx, 0xfe
jae 0x44360e
lea esi, [ebx + ebx]
push esi
lea eax, [esp + 0x20]
push ebp
push eax
mov dword [esp + 0x1c], eax
call fcn.0049c940
xor eax, eax
add esp, 0xc
mov word [esp + esi + 0x1c], ax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 2
jge 0x44360e
mov edx, dword [esp + 0x10]
jmp 0x443530
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x18]
push 0
push 0
push dword [esi*8 + 0x4e9f78]
mov byte [eax], 1
call fcn.0043b060
test eax, eax
jne 0x44360e
mov eax, dword [esp + 0x224]
mov byte [eax], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 0x10
Function at 0x44a2f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
mov eax, dword [0x4e7cbc]
push ebx
mov ebx, ecx
push ebp
push esi
mov dword [esp + 0x14], ebx
cmp eax, dword [0x4e37f4]
jl 0x44a317
mov eax, 4
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov esi, dword [0x4e37f8]
inc eax
mov cl, byte [0x4e7c9f]
add esi, 0xa0
mov dword [0x4e7cbc], eax
mov eax, dword [0x4e7ca8]
mov byte [esp + 0x13], cl
mov byte [0x4e7c9f], 1
mov dword [0x4e37f8], esi
test eax, eax
je 0x44a34e
add eax, 0x58
jmp 0x44a350
xor eax, eax
test esi, esi
je 0x44a359
lea ecx, [esi + 0x58]
jmp 0x44a35b
xor ecx, ecx
movups xmm0, xmmword [eax]
push 0x58
push 0
movups xmmword [ecx], xmm0
push esi
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x30], xmm0
mov eax, dword [eax + 0x40]
mov dword [ecx + 0x40], eax
call fcn.0049d610
add esp, 0xc
mov byte [esi + 0x53], 1
mov ecx, 0x4e8f30
mov dword [esi + 0x3c], 0
push 0
call fcn.004396e0
mov al, byte [esi + 0x96]
test al, al
jne 0x44a3b6
mov byte [esi + 0x96], 1
mov al, 1
cmp dword [0x4e9618], 0
je 0x44a3cc
cmp dword [0x4e9614], 0
jne 0x44a3cc
test al, al
je 0x44a3fe
mov dword [esi + 0x5c], 0x10
mov byte [esi + 0x53], 0
test al, al
jne 0x44a3fe
cmp dword [0x4e9618], 0
jge 0x44a3ed
mov dword [esi + 0x44], 0xffffffff
jmp 0x44a3fe
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x48], eax
mov eax, dword [0x4e9618]
mov dword [esi + 0x44], eax
mov eax, dword [0x4e37f8]
mov esi, dword [esp + 0x34]
mov dword [eax + 0x58], ebx
mov eax, dword [0x4e9580]
mov ebx, dword [0x4e957c]
mov ebp, dword [0x4e95d8]
mov dword [esp + 0x18], eax
mov eax, dword [0x4e95dc]
mov dword [esp + 0x1c], eax
mov dword [0x4e9580], ebx
mov dword [0x4e95dc], ebp
mov dword [0x4e957c], esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [0x4e8eac]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x14]
mov dword [0x4e961c], eax
mov dword [0x4e95d8], eax
mov dword [esp + 0x28], 0
mov esi, dword [esi + 0x10]
mov dword [esp + 0x24], 0xffffffff
cmp ecx, dword [0x4e8eb0]
jne 0x44a47e
call fcn.0040709e
mov ecx, dword [0x4e8eac]
cmp ecx, dword [0x4e8ea8]
jb 0x44a493
mov eax, dword [0x4e9574]
mov dword [ecx], eax
mov ecx, dword [0x4e8eac]
add ecx, 0xc
lea eax, [esp + 0x20]
push 1
push ecx
push 0
mov dword [0x4e8eac], ecx
mov edx, esi
push 1
push eax
mov dword [ecx], 0
mov dword [ecx + 4], 0x4d1cb0
mov dword [ecx + 8], 0
mov ecx, esi
push 0
call fcn.00473ae0
mov ecx, dword [0x4e8eac]
add esp, 0x18
sub ecx, 0xc
mov esi, eax
mov dword [0x4e8eac], ecx
cmp ecx, dword [0x4e8ea8]
jb 0x44a4f1
mov ecx, dword [ecx]
mov dword [0x4e8ebc], ecx
mov dword [0x4e9574], ecx
mov eax, dword [0x4e37f8]
mov eax, dword [eax + 0x20]
mov dword [0x4e7cc4], eax
mov eax, dword [esp + 0x18]
mov dword [0x4e9580], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4e957c], ebx
mov dword [0x4e95d8], ebp
mov dword [0x4e95dc], eax
call fcn.00404430
mov al, byte [esp + 0x13]
mov byte [0x4e7c9f], al
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x44d110
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3d0
push ebx
mov ebx, dword [esp + 0x3d8]
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x44d13d
push 0x64
lea ecx, [esp + 0x114]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44d147
xor eax, eax
mov word [esp + 0x110], ax
mov esi, dword [0x4e95bc]
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x44d208
nop dword [eax]
cmp byte [esi + 0x12], 0
je 0x44d1a3
push 0
push 0x4e6c78
push 0x4e6ccc
push 0
push dword [esi]
call fcn.004b5e18
add esp, 0x14
test eax, eax
je 0x44d187
mov eax, dword [eax + 0x14]
jmp 0x44d18e
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x20]
push eax
push 0x4d7fd0
lea eax, [esp + 0x18]
push 0x7d
push eax
call fcn.004816f0
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x44d160
cmp word [esp + 0x10], si
je 0x44d208
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44d1c0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x7b
jbe 0x44d1f9
mov esi, 0x7f
lea edi, [esp + 0x10]
sub esi, ecx
lea edi, [edi + ecx*2]
push esi
push 0x4d4a2c
push edi
call fcn.004aa2f4
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x44d208
cmp word [esp + ecx*2 + 0xe], 0x20
jne 0x44d208
xor eax, eax
mov word [esp + ecx*2 + 0xe], ax
mov eax, dword [0x4e7ca8]
cmp byte [eax + 0x50], 0
je 0x44d223
cmp byte [0x4e9605], 0
jne 0x44d223
mov esi, 1
jmp 0x44d225
xor esi, esi
mov eax, dword [0x4e7cbc]
cmp eax, 1
jle 0x44d234
lea edi, [eax - 1]
jmp 0x44d236
xor edi, edi
mov cl, 1
call fcn.0041c1c0
lea edx, [esp + 0x1d8]
mov cl, al
call fcn.0041c5a0
mov ecx, dword [0x4e7cbc]
mov edx, 0x4cdea8
push eax
push dword [0x4e7cd0]
mov eax, dword [0x4e7cac]
push ecx
sub eax, esi
cmp ecx, 1
push eax
mov eax, 0x4d7fd8
mov ecx, 0x4d2650
cmovle eax, edx
cmp dword [0x4e7ef0], 0
push eax
push edi
lea eax, [esp + 0x28]
mov edx, 0x4d2648
push eax
push dword [0x4e95c4]
mov eax, ecx
push dword [0x4e95c8]
cmovne eax, edx
cmp dword [0x4e7ef4], 0
push eax
cmovne ecx, edx
lea eax, [esp + 0x138]
push ecx
push eax
push 0x4d8058
push 0xfffe
push ebx
call fcn.004816a0
mov edi, 0xfffe
add esp, 0x3c
mov edx, edi
sub edx, eax
lea esi, [ebx + eax*2]
mov ecx, esi
call fcn.00413500
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44d2e0
sub ecx, edx
mov eax, 0x4d7dac
sar ecx, 1
cmp dword [0x4e7cd8], 0
lea esi, [esi + ecx*2]
mov ecx, 0x4d81c0
cmove eax, ecx
push eax
mov eax, esi
sub eax, ebx
sar eax, 1
sub edi, eax
push edi
push esi
call fcn.004816a0
add esp, 0xc
lea eax, [esi + eax*2]
pop edi
pop esi
pop ebx
add esp, 0x3d0
ret 8
Function at 0x44ed40
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x314
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov ebx, ecx
push esi
push edi
push dword [0x4e95f8]
mov byte [esp + 0x17], dl
mov esi, ecx
mov edi, 0x4cdea8
call ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x44ede7
mov edi, SysReAllocStringLen
nop word [eax + eax]
xor esi, esi
push esi
push ecx
lea eax, [esp + 0x120]
mov edx, 0x4d8814
push eax
push 0x4d87fc
mov ecx, edi
call fcn.00482cd0
add esp, 0x10
test eax, eax
jne 0x44edc2
test esi, esi
jne 0x44edaf
mov esi, 0x100
jmp 0x44ed82
cmp edi, reloc.OLEAUT32.dll_SysReAllocString
je 0x44ee76
mov edi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x44ed80
lea eax, [esp + 0x118]
push eax
call ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44ee76
mov eax, dword [esp + 0x14]
mov esi, ebx
mov edi, 0x4cdea8
cmp byte [esp + 0x13], 0
je 0x44ee12
cmp eax, 0xffffffff
je 0x44ee12
push ebx
push 0x4d868c
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.004816a0
mov esi, dword [0x4e95f4]
lea edi, [esp + 0x28]
add esp, 0x10
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push esi
mov ecx, 0x4e8f30
call fcn.0044d330
test eax, eax
jne 0x44ee5e
push ebx
push 0x4d86a4
lea eax, [esp + 0xa0]
push 0x40
push eax
call fcn.004816a0
push 0
push 0
xorps xmm3, xmm3
lea ecx, [esp + 0xb0]
mov edx, 0x10
call fcn.00486b20
add esp, 0x18
mov eax, dword [0x4e4e9c]
mov ecx, 0x4cdea8
test eax, eax
je 0x44ee73
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret

Function at 0x4501f0
Capabilities:
Set current directory

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
movzx eax, word [esi]
test ax, ax
je 0x450226
cmp word [esi + 2], 0x3a
jne 0x450226
cmp word [esi + 4], 0
jne 0x450226
mov word [esp + 4], ax
lea esi, [esp + 4]
xor eax, eax
mov dword [esp + 6], 0x5c003a
mov word [esp + 0xa], ax
push esi
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test eax, eax
jne 0x45023b
mov eax, 0xa0070000
pop esi
add esp, 8
ret
cmp byte [0x4e9604], 0
je 0x45024b
mov ecx, esi
call fcn.00450260
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x450260
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004b5610
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
lea ecx, [esp + 4]
cmove ecx, esi
pop esi
test ecx, ecx
je 0x450297
push ecx
push ecx
mov ecx, 0x4e4e98
call fcn.0044dd00
add esp, 0x10000
ret

Function at 0x4502a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004b5610
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
je 0x4502d0
lea eax, [esp]
push eax
call fcn.004a94de
add esp, 4
add esp, 0x10000
ret
xor eax, eax
add esp, 0x10000
ret
Function at 0x454a00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x454a0b
xor al, al
pop ebx
ret
sub edx, 1
je 0x454a30
movzx eax, bl
push eax
sub edx, 1
je 0x454a26
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
pop ebx
ret
mov al, bl
dec al
cmp al, 5
ja 0x454a3d
cmp bl, 3
jne 0x454a45
mov al, bl
add al, 0x66
cmp al, 5
ja 0x454a5c
cmp dword [0x4e7ef0], 0
movzx eax, bl
je 0x454a8d
mov al, byte [eax + 0x4e7f00]
shr al, 7
pop ebx
ret
cmp dword [0x4e7ef4], 0
je 0x454a8a
push 0
xor edx, edx
call fcn.0041c400
add esp, 4
test al, al
je 0x454a7c
mov cl, 1
call fcn.0041c1c0
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4e7f00]
shr al, 7
ret
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret
Function at 0x457ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x43c
cmp word [ecx], 0
push ebx
push ebp
push esi
mov esi, edx
je 0x457f0b
cmp word [esi], 0
je 0x457f0b
mov ebp, dword [esp + 0x44c]
cmp ebp, 1
je 0x457cd4
cmp ebp, 2
je 0x457cd4
xor bh, bh
jmp 0x457cd6
mov bh, 1
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
lea ecx, [esp + 0x30]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457cf3
sub ecx, edx
sar ecx, 1
je 0x457d13
cmp word [esp + ecx*2 + 0x2e], 0x5c
jne 0x457d13
xor eax, eax
mov word [esp + ecx*2 + 0x2e], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x240]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
lea ecx, [esp + 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457d36
sub ecx, edx
sar ecx, 1
je 0x457d5c
cmp word [esp + ecx*2 + 0x23a], 0x5c
jne 0x457d5c
xor eax, eax
mov word [esp + ecx*2 + 0x23a], ax
mov bl, byte [esp + 0x450]
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test bl, bl
je 0x457df5
lea eax, [esp + 0x30]
push eax
call esi
cmp eax, 0xffffffff
je 0x457f0b
test al, 0x10
je 0x457f0b
movzx eax, word [esp + 0x30]
mov ecx, eax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x457d9c
or ecx, 0x20
movzx eax, word [esp + 0x23c]
mov edx, eax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x457db2
or edx, 0x20
cmp cx, dx
jne 0x457dbf
cmp word [esp + 0x32], 0x3a
je 0x457df5
movzx eax, bh
lea edx, [esp + 0x23c]
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00457ca0
add esp, 8
test al, al
je 0x457f0b
mov dl, 1
lea ecx, [esp + 0x30]
call fcn.00457f20
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
lea eax, [esp + 0x23c]
push eax
call esi
cmp eax, 0xffffffff
je 0x457e1a
test al, 0x10
je 0x457f0b
test bh, bh
je 0x457f0b
test bl, bl
jne 0x457e65
jmp 0x457e32
test bl, bl
jne 0x457e65
lea ecx, [esp + 0x23c]
call fcn.0041ff80
test al, al
je 0x457f0b
lea ecx, [esp + 0x30]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x457e40
mov eax, dword [0x4d8f28]
mov dword [ecx], eax
mov eax, dword [0x4d8f2c]
mov dword [ecx + 4], eax
mov ax, word [0x4d8f30]
mov word [ecx + 8], ax
lea ecx, [esp + 0x30]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457e70
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [esp + ecx*2 + 0x32], ax
lea ecx, [esp + 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457e90
xor eax, eax
sub ecx, edx
sar ecx, 1
xorps xmm0, xmm0
mov dword [esp + 0x10], eax
mov dword [esp + 0x2a], eax
movlpd qword [esp + 0x22], xmm0
mov word [esp + ecx*2 + 0x23e], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x23c]
mov dword [esp + 0x1c], eax
movzx eax, bl
xor eax, 1
inc eax
mov dword [esp + 0x14], eax
mov eax, 0x614
mov word [esp + 0x20], ax
cmp ebp, 2
jne 0x457ef1
mov eax, 0x615
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
test eax, eax
pop ebp
sete al
pop ebx
add esp, 0x43c
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x43c
ret
Function at 0x457f20
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
cmp word [ecx], 0
je 0x45801e
test dl, dl
jne 0x457f4c
push ecx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x45801e
mov al, 1
add esp, 0x230
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457f70
sub ecx, edx
sar ecx, 1
je 0x457f90
cmp word [esp + ecx*2 + 0x22], 0x5c
jne 0x457f90
xor eax, eax
mov word [esp + ecx*2 + 0x22], ax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45801e
test al, 0x10
je 0x45801e
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457fb0
sub ecx, edx
mov dword [esp + 0xc], 0
sar ecx, 1
xor eax, eax
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x12], 0
mov word [esp + ecx*2 + 0x26], ax
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x10], ax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
add esp, 0x230
ret
xor al, al
add esp, 0x230
ret
Function at 0x458620
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x238
push ebx
push ebp
push esi
push edi
push ecx
mov byte [esp + 0x1b], dl
mov ebp, ecx
push 0
push 1
xor edx, edx
call fcn.004814b0
add esp, 0xc
test eax, eax
je 0x4586c2
mov ecx, ebp
call fcn.00481e30
mov ebx, eax
test ebx, ebx
je 0x4586c4
cmp byte [esp + 0x17], 0
jne 0x4586c4
push ebx
push 0
push 0x101000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x45869b
push esi
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetProcessId]
cmp eax, ebx
jne 0x458684
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test edi, edi
je 0x45873d
cmp edi, 0x102
je 0x4586b5
cmp byte [esp + 0x24c], 0
jne 0x4586c4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
je 0x4586c4
test bl, 3
jne 0x4586c4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret
xor ebx, ebx
push 0
push 2
mov dword [esp + 0x20], 0x22c
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.DLL_Process32NextW]
lea eax, [esp + 0x18]
push eax
push esi
call edi
test eax, eax
je 0x458736
test ebx, ebx
je 0x458700
cmp ebx, dword [esp + 0x20]
je 0x45874a
lea eax, [esp + 0x3c]
push 0x5c
push eax
call fcn.0049c7ee
add esp, 8
test eax, eax
je 0x458718
add eax, 2
jmp 0x45871c
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x458768
lea eax, [esp + 0x18]
push eax
push esi
call edi
test eax, eax
jne 0x4586f6
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esp + 0x17], 0
cmovne ebx, dword [esp + 0x30]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esp + 0x17], 0
mov eax, dword [esp + 0x20]
cmovne eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret