joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4078ac
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [0x40d0ac], 0xffffffff
jne 0x4078d0
push 0
call fcn.00407822
cmp dword [0x40d0ac], 0xffffffff
pop ecx
jne 0x4078d0
xor eax, eax
leave
ret
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.0040509d
push dword [ebp + 0x10]
mov esi, eax
call fcn.0040509d
mov edx, dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x68]
push eax
call fcn.00405151
add esp, 0xc
push 0xa
pop ecx
cmp esi, ecx
jae 0x40790e
sub ecx, esi
xor eax, eax
shr ecx, 1
lea edi, [ebp + esi*2 - 0x68]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
push eax
call fcn.00405151
pop ecx
push 0x32
lea eax, [ebx + 0xa]
pop ecx
cmp eax, ecx
jae 0x407936
sub ecx, eax
lea edi, [ebp + eax*2 - 0x68]
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor esi, esi
xor eax, eax
xor byte [ebp + eax - 0x68], 0x78
inc eax
cmp eax, 0x64
jb 0x40793a
mov eax, dword [ebp + 8]
imul eax, eax, 0x64
push esi
push esi
push eax
push dword [0x40d0ac]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push dword [0x40d0ac]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407976
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
cmp dword [0x40d0ac], 0xffffffff
push esi
mov esi, eax
jne 0x40799d
push 1
call fcn.00407822
cmp dword [0x40d0ac], 0xffffffff
pop ecx
jne 0x40799d
xor eax, eax
jmp 0x407a0e
push edi
imul esi, esi, 0x64
xor edi, edi
push edi
push edi
push esi
push dword [0x40d0ac]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push 0x64
lea eax, [ebp - 0x6c]
push eax
push dword [0x40d0ac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407a0b
cmp dword [ebp - 4], 0x64
jne 0x407a0b
xor eax, eax
xor byte [ebp + eax - 0x6c], 0x78
inc eax
cmp eax, 0x64
jb 0x4079d5
cmp word [ebx], di
mov word [ebp - 8], di
je 0x4079fa
push ebx
lea ecx, [ebp - 0x6c]
call fcn.004050df
pop ecx
lea ecx, [ebp - 0x6c]
cmp eax, ecx
jne 0x407a0b
push dword [ebp + 8]
lea edx, [ebp - 0x58]
call fcn.00405151
xor eax, eax
pop ecx
inc eax
jmp 0x407a0d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x408e14
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040b430
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x408e34
push dword [ebp + 0xc]
call fcn.0040509d
pop ecx
jmp 0x408e36
xor eax, eax
push edi
push 0x4400000
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x408e5a
xor eax, eax
jmp 0x408f6c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, 0x2001
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp byte [esi], 0
jne 0x408ed6
xor eax, eax
jmp 0x408f6a
mov eax, dword [ebp - 8]
test eax, eax
je 0x408ef4
cmp dword [ebp + 0xc], eax
mov byte [ebp + eax - 0x1010], 0
ja 0x408eb8
mov eax, dword [ebp - 0xc]
add dword [ebp + 0xc], eax
add eax, eax
push eax
push esi
push 0
mov dword [ebp - 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
je 0x408e7f
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
lea eax, [esi + edi]
push eax
call fcn.0040a3f0
mov eax, dword [ebp - 8]
sub dword [ebp + 0xc], eax
add esp, 0xc
add edi, eax
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
je 0x408e86
lea eax, [edi + edi + 2]
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jne 0x408f12
and dword [ebp - 4], eax
jmp 0x408f5b
and dword [ebp + 0xc], 0
test esi, esi
mov dword [ebp - 4], 1
mov byte [esi + edi], 0
mov ecx, eax
je 0x408f51
test edi, edi
jbe 0x408f51
and word [ecx], 0
test edi, edi
jbe 0x408f51
mov edx, dword [ebp + 0xc]
movzx dx, byte [edx + esi]
mov word [ecx], dx
mov edx, dword [ebp + 0xc]
cmp byte [edx + esi], 0
je 0x408f51
inc dword [ebp + 0xc]
inc ecx
inc ecx
cmp dword [ebp + 0xc], edi
jb 0x408f33
and word [eax + edi*2], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x408f6f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
push 0x40bad8
call fcn.0040b0d8
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
cmp edi, ebx
jl 0x408fee
cmp word [ebp - 0x1c], 0xffff
jne 0x408fee
call esi
sub eax, dword [ebp - 0x20]
cmp eax, 0x15f90
ja 0x409009
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x408fcf
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x408fb0
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov eax, dword [eax + 0x420440]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x7c]
mov edi, eax
cmp edi, ebx
jl 0x409009
jmp 0x408f91
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x40900f
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0040b113
ret

Function at 0x409114
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x40d05c], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x409134
call fcn.00409073
test eax, eax
mov dword [ebp - 8], eax
jne 0x409146
mov esi, ebx
call fcn.00409015
test eax, eax
mov dword [ebp - 8], eax
je 0x4091fb
push 0x4023e4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebx]
mov edx, dword [ecx]
sub esp, 0x10
mov edi, esp
mov word [ebp - 0x18], 3
mov dword [ebp - 0x10], 1
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x88]
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x94]
xor esi, esi
cmp dword [ebp - 4], esi
je 0x4091e2
push esi
push 0x4023f8
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x4091a6
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetParent]
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x10
push dword [0x4107bc]
mov eax, 0x1388
push dword [0x41b044]
push eax
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
mov ebx, dword [ebx]
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0xf0]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409427
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
test eax, eax
push ebx
push esi
push edi
jne 0x409449
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov edi, dword [eax + 0x420448]
mov dword [ebp - 4], edi
jmp 0x40944e
mov dword [ebp - 4], eax
mov edi, eax
movzx esi, byte [ebp + 8]
imul esi, esi, 0x14
xor ebx, ebx
inc ebx
test dword [esi + 0x42044c], edi
je 0x4094b0
cmp edi, ebx
jne 0x409495
cmp dword [0x420508], ebx
jne 0x4094b4
mov eax, dword [esi + 0x420440]
test eax, eax
je 0x4094b4
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0xa0]
test eax, eax
jge 0x4094ac
and dword [esi + 0x420440], 0
and dword [esi + 0x42044c], 0xfffffffe
cmp edi, 2
jne 0x4094b0
cmp dword [esi + 0x420444], 0
jne 0x4094ac
and dword [esi + 0x42044c], 0xfffffffd
jmp 0x4094eb
mov eax, ebx
jmp 0x409525
cmp edi, ebx
jne 0x4094e6
lea edi, [esi + 0x420440]
mov eax, edi
call fcn.00409114
cmp dword [0x420508], ebx
mov dword [ebp - 8], eax
jne 0x4094e0
test eax, eax
je 0x4094e0
mov edi, dword [edi]
mov eax, dword [edi]
push edi
call dword [eax + 4]
or dword [esi + 0x42044c], ebx
jmp 0x409522
and dword [edi], 0
mov edi, dword [ebp - 4]
cmp edi, 2
jne 0x409522
xor eax, eax
push eax
push eax
push eax
push ebx
push 0x401fa4
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0x420444], eax
je 0x409522
push 4
lea ecx, [ebp + 8]
push ecx
push 0x41
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
or dword [esi + 0x42044c], 2
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409b46
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push 0x400
lea eax, [ebp - 0x800]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
cmp word [0x4025f2], 0
je 0x409b8f
push 0x4025f2
lea ecx, [ebp - 0x800]
call fcn.004050df
test eax, eax
pop ecx
je 0x409b94
xor eax, eax
inc eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [0x4025d4], 0
je 0x409bb1
push 0x4025d4
mov ecx, eax
call fcn.004050df
pop ecx
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
leave
ret

Function at 0x409c03
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ebx, 0x4024e0
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x409c48
push dword [ebp + 8]
lea esi, [ebp - 4]
push 0x402734
mov eax, 0x400
call fcn.00406645
test eax, eax
pop ecx
pop ecx
jne 0x409c7b
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push ebx
push 0x80000002
call edi
test eax, eax
je 0x409c64
xor eax, eax
jmp 0x409c7b
push dword [ebp + 8]
lea esi, [ebp - 4]
push 0x402734
mov eax, 0x400
call fcn.00406645
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a291
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040b430
call fcn.00409abb
test eax, eax
je 0x40a2ac
call fcn.0040a243
push ebx
push esi
push edi
call fcn.00409b46
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
test eax, eax
mov esi, 0x400
je 0x40a323
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 9
call fcn.00409747
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x1800]
push eax
push ebx
call edi
lea eax, [ebp - 0x1000]
push eax
call fcn.00409c03
test eax, eax
pop ecx
je 0x40a323
push ebx
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40a323
lea eax, [ebp - 0x1000]
push eax
call fcn.0040750e
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00409bbc
test eax, eax
je 0x40a336
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0x10
call fcn.0040746d
cmp eax, ebx
push esi
je 0x40a356
lea ecx, [ebp - 0x800]
push ecx
push dword [eax*4 + 0x40d03c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40a370
lea eax, [ebp - 0x800]
push eax
push ebx
call edi
mov ecx, 0x4025c0
lea eax, [ebp - 0x800]
call fcn.0040512d
push 1
lea eax, [ebp - 0x800]
push eax
push 0x402734
push 0x4024e0
push 0x80000001
call fcn.00406721
add esp, 0x14
test eax, eax
je 0x40a3c4
lea eax, [ebp - 0x800]
push eax
call fcn.0040750e
test eax, eax
pop ecx
je 0x40a3b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
call fcn.00409747
pop ecx
jmp 0x40a31b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40a3cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.00409747
pop ecx
pop ecx
mov dword [0x40d054], ebx
jmp 0x40a2a7

Function at 0x40abe6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40abf0
repz ret
jmp fcn.0040ae8b
Function at 0x40a260
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426458]
jne 0x40a26a
repz ret
jmp fcn.0040cf8b

Function at 0x40c3a3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408519
and dword [ebp - 0x14], 0
cmp dword [0x428a00], 0
mov dword [ebp - 0x18], eax
jne 0x40c456
push 0x403e24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c4fe
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e18
push ebx
call edi
test eax, eax
je 0x40c4fe
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e08
push ebx
mov dword [0x428a00], eax
call edi
push eax
call esi
push 0x403df4
push ebx
mov dword [0x428a04], eax
call edi
push eax
call esi
push 0x403dd8
push ebx
mov dword [0x428a08], eax
call edi
push eax
call esi
mov dword [0x428a10], eax
test eax, eax
je 0x40c456
push 0x403dc0
push ebx
call edi
push eax
call esi
mov dword [0x428a0c], eax
mov eax, dword [0x428a0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c4af
cmp dword [0x428a10], ecx
je 0x40c4af
push eax
call esi
push dword [0x428a10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c4af
test ebx, ebx
je 0x40c4af
call edi
test eax, eax
je 0x40c4a6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c4a6
test byte [ebp - 8], 1
jne 0x40c4af
or dword [ebp + 0x10], 0x200000
jmp 0x40c4e2
mov eax, dword [0x428a04]
cmp eax, dword [ebp - 0x18]
je 0x40c4e2
push eax
call esi
test eax, eax
je 0x40c4e2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c4e2
mov eax, dword [0x428a08]
cmp eax, dword [ebp - 0x18]
je 0x40c4e2
push eax
call esi
test eax, eax
je 0x40c4e2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x428a00]
call esi
test eax, eax
je 0x40c4fe
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c500
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a260
leave
ret
Function at 0x4228f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x7aca90], ax
mov word [0x7aca94], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x7aca90
mov dword [0x7aca9c], 0x320033
mov dword [0x7acaa4], 0x6c006c
mov word [0x7aca96], cx
mov dword [0x7aca98], 0x6c0065
mov dword [0x7acaa0], 0x64002e
mov word [0x7aca92], dx
mov word [0x7acaa8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x7aca8c]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x7aca88], eax
mov eax, dword [0x42dadc]
push edx
push eax
mov byte [0x428d53], 0x65
mov dword [0x428d49], 0x75747269
mov word [0x428d4d], 0x6c61
mov byte [0x428d48], 0x56
mov word [0x428d54], 0x7463
mov byte [0x428d56], 0
mov dword [0x428d4f], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x4229e0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1050
call fcn.0040cf60
cmp dword [0x7aca8c], 0x37
jne 0x422aac
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046c8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0x454]
push edx
push 0x4046d0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 8]
push edx
push 0x4046e4
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x4046f8
push 0x404708
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea eax, [esp + 0x854]
push eax
push 0
push 0x404730
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x40475c
push 0x404778
push 0x404788
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0x7ada80]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x42dadc]
mov byte [ecx + esi], al
add esp, 0x1050
ret
Function at 0x422c40
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7aca8c]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x42dadc]
shr eax, 3
push edi
test eax, eax
je 0x422ddb
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x422c74
mov esi, dword [esp + 0x18]
cmp dword [0x7aca8c], 0x1c
jne 0x422c91
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x427200]
mov eax, dword [0x427204]
mov ecx, dword [0x427208]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x42720c]
mov ebp, 0xc6ef3720
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x28]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0x7ac9fc], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0x7aca8c], 0x1be
jne 0x422d1d
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0x7aca8c], 0x979
mov dword [0x7aca00], 0xff6b3619
mov dword [0x7aca04], 0xffffffff
jne 0x422d5a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x422cca
cmp dword [0x7aca8c], 0x8d4
jne 0x422d92
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0x7aca8c], 0x17
jne 0x422dca
push 0
push 0
push 0
push 0x404680
push 0x4046a0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x422c70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x40e66b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 8], 2
jl 0x40e828
inc eax
cmp dword [ebp - 8], eax
push esi
push edi
mov dword [ebp - 4], eax
jle 0x40e823
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea esi, [eax + ecx*4]
push 0x4015c4
push dword [esi]
call edi
test eax, eax
je 0x40e82b
push 0x4015bc
push dword [esi]
call edi
test eax, eax
je 0x40e82b
push 0x4015b4
push dword [esi]
call edi
test eax, eax
je 0x40e82b
push 0x4015ac
push dword [esi]
call edi
test eax, eax
je 0x40e82b
cmp dword [ebp - 4], 1
jne 0x40e70a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebx + 8], eax
jmp 0x40e814
push 0x4015a4
push dword [esi]
call edi
test eax, eax
je 0x40e724
push 0x40159c
push dword [esi]
call edi
test eax, eax
jne 0x40e728
mov byte [ebx + 3], 1
push 0x401594
push dword [esi]
call edi
test eax, eax
je 0x40e742
push 0x40158c
push dword [esi]
call edi
test eax, eax
jne 0x40e746
mov byte [ebx + 1], 1
push 0x401584
push dword [esi]
call edi
test eax, eax
je 0x40e760
push 0x40157c
push dword [esi]
call edi
test eax, eax
jne 0x40e767
mov byte [ebx + 1], 1
mov byte [ebx], 1
push 0x401574
push dword [esi]
call edi
test eax, eax
je 0x40e781
push 0x40156c
push dword [esi]
call edi
test eax, eax
jne 0x40e785
mov byte [ebx + 2], 1
push 0x401564
push dword [esi]
call edi
test eax, eax
je 0x40e79f
push 0x40155c
push dword [esi]
call edi
test eax, eax
jne 0x40e7a6
mov dword [ebx + 4], 1
push 0x401554
push dword [esi]
call edi
test eax, eax
je 0x40e7c0
push 0x40154c
push dword [esi]
call edi
test eax, eax
jne 0x40e7de
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebp - 8]
jge 0x40e7de
mov ecx, dword [ebp - 0xc]
lea esi, [ecx + eax*4]
mov dword [ebx + 4], 2
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx + 0xc], eax
push 0x401544
push dword [esi]
call edi
test eax, eax
je 0x40e7f8
push 0x40153c
push dword [esi]
call edi
test eax, eax
jne 0x40e814
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebp - 8]
jge 0x40e814
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 4], 3
mov dword [ebp - 4], eax
mov eax, dword [ecx + eax*4]
mov dword [ebx + 0xc], eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x40e6a9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
push 0x401270
call fcn.00411593
pop ecx
xor eax, eax
jmp 0x40e826