joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c1f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x47c1f9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040580c
xor eax, eax
push ebp
push 0x47c33e
push dword fs:[eax]
mov dword fs:[eax], esp
nop
push 0x50000000
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
push 0
mov eax, dword [0x59eae8]
mov eax, dword [eax]
push eax
push 0
lea edx, [ebp - 0x34]
mov eax, 0x47c358
call fcn.0047c198
mov eax, dword [ebp - 0x34]
call fcn.0040581c
push eax
lea edx, [ebp - 0x38]
mov eax, 0x47c388
call fcn.0047c198
mov eax, dword [ebp - 0x38]
call fcn.0040581c
mov edx, eax
mov eax, 0x80
pop ecx
call fcn.004081f0
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0047c0c4
lea eax, [ebp - 0xc]
call fcn.00406e3c
push eax
push 0x47c394
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax]
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [eax]
call dword [eax + 0xf0]
call fcn.00406f4c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.0040581c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405c7c
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
call fcn.00406f4c
nop
push 5
push ebx
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c345
lea eax, [ebp - 0x3c]
call fcn.00405b68
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004053b0
lea eax, [ebp - 0x20]
call fcn.00410728
lea eax, [ebp - 0xc]
call fcn.00406e3c
lea eax, [ebp - 8]
call fcn.00406e3c
lea eax, [ebp - 4]
call fcn.0040538c
ret
Function at 0x47ca7c
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x47cbb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x59e8ec]
add eax, 0x115
mov edx, 0x47cbd0
call fcn.00424250
mov eax, dword [0x59e8ec]
add eax, 0x115
mov edx, 0x47cbe4
call fcn.00424250
mov eax, dword [0x59e8ec]
add eax, 0x115
mov edx, 0x47cbf8
call fcn.00424250
mov eax, dword [0x59e8ec]
add eax, 0x115
mov edx, 0x47cc10
call fcn.00424250
mov eax, dword [0x59e8ec]
add eax, 0x115
mov edx, 0x47cc28
call fcn.00424250
mov ebx, dword [0x59e8ec]
mov ebx, dword [ebx + 0x135]
dec ebx
test ebx, ebx
jl 0x47cb9e
inc ebx
xor esi, esi
lea ecx, [ebp - 8]
mov eax, dword [0x59e8ec]
add eax, 0x115
mov edx, esi
call fcn.00424238
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004221d8
cmp dword [ebp - 4], 0
je 0x47cb96
mov eax, dword [ebp - 4]
mov edx, 0x47cc40
call fcn.004057b4
je 0x47cb96
mov eax, dword [ebp - 4]
mov edx, 0x47cc4c
call fcn.004057b4
je 0x47cb96
mov eax, dword [ebp - 4]
call fcn.0040581c
mov edi, eax
mov eax, edi
call fcn.00422bb8
test al, al
je 0x47cb8e
mov edx, edi
lea eax, [ebp - 0xc]
call fcn.00405584
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.004623e0
push 0x20
push edi
call sub.kernel32.dll_SetFileAttributesA
push edi
call sub.kernel32.dll_DeleteFileA
jmp 0x47cb96
mov eax, dword [ebp - 4]
call fcn.00476e10
inc esi
dec ebx
jne 0x47cb12
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cbc0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004053b0
ret
Function at 0x47fc60
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 0
call sub.ole32.dll_CoInitialize_2
call sub.kernel32.dll_GetProcessHeap
mov dword [ebp - 0x14], eax
push 0x208
push 0
push dword [ebp - 0x14]
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x49d8c4
push 1
push 0
push 0x49d8b4
call sub.ole32.dll_CoCreateInstance_1
mov dword [ebp - 0x10], eax
test eax, eax
js 0x47fd4e
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0xc]
push eax
push 0x49d8d4
push dword [ebp - 8]
call dword [edx]
mov dword [ebp - 0x10], eax
test eax, eax
js 0x47fd40
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [edx + 0x50]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [edx + 0x44]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [edx + 0x1c]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [edx + 0x24]
mov dword [ebp - 0x10], eax
push 0x104
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar_1
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
push 1
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [edx + 0x18]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
push dword [ebp - 0xc]
call dword [edx + 8]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp - 8]
call dword [edx + 8]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0x14]
call sub.kernel32.dll_HeapFree
call sub.ole32.dll_CoUninitialize_1
mov eax, dword [ebp - 0x10]
leave
ret 0x10

Function at 0x4801bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x107]
xor ecx, ecx
mov edx, 0xff
call fcn.00403ab0
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.advapi32.dll_RegOpenKeyA
mov dword [ebp - 8], 0xff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x107]
push eax
push 0
push 0
push edi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x107]
mov ecx, 0xff
call fcn.004055fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x480230
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48042b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
lea eax, [ebp - 0x20e]
xor ecx, ecx
mov edx, 0xff
call fcn.00403ab0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push esi
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48040d
xor esi, esi
push esi
mov esi, 0x480440
lea edi, [ebp - 0x20e]
mov ecx, 0x3f
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
push esi
mov esi, 0x480440
lea edi, [ebp - 0x10f]
mov ecx, 0x3f
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
mov dword [ebp - 0x10], 0xff
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x10f]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyA
mov ebx, eax
cmp ebx, 0x103
je 0x4803fb
test ebx, ebx
jne 0x4803f3
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x10f]
mov ecx, 0xff
call fcn.004055fc
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x214]
mov edx, 0x480548
call fcn.004056a4
mov eax, dword [ebp - 0x214]
call fcn.0040581c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20e]
push eax
push 0
push 0
push 0x480580
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp byte [ebp - 0x20d], 0x3a
jne 0x4803f2
cmp byte [ebp - 0x20c], 0x5c
jne 0x4803f2
lea eax, [ebp - 0x220]
lea edx, [ebp - 0x20e]
mov ecx, 0xff
call fcn.004055fc
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x21c]
call fcn.004230dc
mov edi, dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
mov edx, edi
call fcn.00405584
mov edx, dword [ebp - 0x224]
lea ecx, [ebp - 1]
mov eax, dword [0x5a7d68]
call fcn.00480064
lea eax, [ebp - 0x228]
mov edx, edi
call fcn.00405584
mov edx, dword [ebp - 0x228]
mov eax, dword [0x5a7d78]
call fcn.00424250
cmp byte [ebp - 1], 0
je 0x4803fb
inc esi
test ebx, ebx
je 0x4802a6
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480432
lea eax, [ebp - 0x228]
mov edx, 6
call fcn.004053b0
ret
Function at 0x480734
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040580c
xor eax, eax
push ebp
push 0x4808cf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x59e948]
cmp byte [eax], 0
jne 0x4808b4
cmp dword [ebp - 4], 0
je 0x48087f
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004033c4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00422c80
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004056a4
mov eax, dword [ebp - 8]
call fcn.0040581c
mov esi, eax
push esi
call sub.kernel32.dll_DeleteFileA
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004033c4
mov eax, dword [ebp - 0x14]
call fcn.0040581c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4807fe
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x4808dc
mov edx, 0x4808e0
mov eax, 0x80000002
call fcn.0042333c
mov eax, dword [ebp - 4]
call fcn.00403060
call fcn.00403024
mov eax, dword [0x59e944]
mov edx, dword [ebp - 4]
call fcn.004053e0
jmp 0x4808b4
mov eax, esi
call fcn.00422bb8
test al, al
jne 0x48084b
push 0x4808f8
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.00405584
push dword [ebp - 0x1c]
push 0x48090c
push 0x48091c
push 0x480928
push 0x480944
push 0x480954
lea eax, [ebp - 0x18]
mov edx, 7
call fcn.00405720
mov eax, dword [ebp - 0x18]
call fcn.0040581c
jmp 0x480886
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x4808dc
mov edx, 0x4808e0
mov eax, 0x80000002
call fcn.0042333c
mov eax, dword [ebp - 4]
call fcn.00403060
call fcn.00403024
mov eax, dword [0x59e944]
mov edx, dword [ebp - 4]
call fcn.004053e0
jmp 0x4808b4
mov bl, 1
mov eax, 0x48097c
push 0x10
push 0
push eax
mov eax, dword [0x5a7d68]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_1
test bl, bl
je 0x4808b4
push 1
push 0
push 0
push 0x480a5c
push 0
push 0
call sub.shell32.dll_ShellExecuteA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4808d6
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004053b0
ret
Function at 0x4849b4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov esi, eax
push esi
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
dec edx
test edx, edx
jl 0x4849e9
inc edx
xor ecx, ecx
movzx ebx, byte [esi + ecx]
mov edi, eax
and edi, 0xff
xor ebx, edi
mov ebx, dword [ebx*4 + 0x59e484]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc ecx
dec edx
jne 0x4849c9
pop edi
pop esi
pop ebx
ret

Function at 0x484f90
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffd0
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 8]
push eax
push 0x48502c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 1
xor ebx, ebx
mov dword [esp + 0x2c], ebx
push esp
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 1
or ebx, 2
mov dword [esp + 0x1c], ebx
push esp
push 0
mov eax, dword [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
add esp, 0x30
pop ebx
ret

Function at 0x4850c8
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4850f6
mov eax, dword [esp + 4]
cmp eax, 4
je 0x4850f4
cmp eax, 5
je 0x4850f4
xor ebx, ebx
jmp 0x4850f6
mov bl, 1
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x401290
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x4012b0
Capabilities:
Create directory
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x420a74]
xor eax, ebp
mov dword [ebp - 4], eax
push str.PROGRAMDATA
call fcn.004054df
add esp, 4
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jne 0x4012e9
mov dword [ebp - 0x198], str.C:ProgramData
mov eax, dword [ebp - 0x198]
push eax
push 0x4200b4
push 0x425320
call fcn.004014a0
add esp, 0xc
push 0x1ff
push 0x425320
call fcn.004094cf
add esp, 8
push 0x425320
call fcn.00401290
add esp, 4
test eax, eax
jne 0x401357
push str.TEMP
call fcn.004054df
add esp, 4
push eax
push str._slcu_
push 0x425320
call fcn.004014a0
add esp, 0xc
push 0x1ff
push 0x425320
call fcn.004094cf
add esp, 8
lea ecx, [ebp - 0x194]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x40138a
push str._fatal__LCU:_unable_to_initialize_network.
call fcn.00402180
add esp, 4
or eax, 0xffffffff
jmp 0x4013c7
push 0x425320
call fcn.004033d0
push eax
push str.LCU:_service_has_been_started__v_s___work_dir:___s__.
call fcn.004022d0
add esp, 0xc
call fcn.004024b0
test eax, eax
je 0x4013c5
push str._error__LCU:_unable_to_bind_to_port_3989.
call fcn.00402180
add esp, 4
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013a2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403419
mov esp, ebp
pop ebp
ret
Function at 0x401ae0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2124
call fcn.00403430
mov eax, dword [0x420a74]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1000
push 0
lea eax, [ebp - 0x1108]
push eax
call fcn.00404070
add esp, 0xc
push 0xfff
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1108]
push edx
call fcn.00407370
add esp, 0xc
push 0x420464
lea eax, [ebp - 0x1108]
push eax
call fcn.00407494
add esp, 8
lea ecx, [ebp - 0x2118]
push ecx
push 0x1000
lea edx, [ebp - 0x2108]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x401b5c
xor eax, eax
jmp 0x401cc9
mov eax, dword [ebp - 0x2118]
shr eax, 2
mov dword [ebp - 0x211c], eax
mov dword [ebp - 0x210c], 0
jmp 0x401b86
mov ecx, dword [ebp - 0x210c]
add ecx, 1
mov dword [ebp - 0x210c], ecx
mov edx, dword [ebp - 0x210c]
cmp edx, dword [ebp - 0x211c]
jae 0x401cc7
mov eax, dword [ebp - 0x210c]
cmp dword [ebp + eax*4 - 0x2108], 0
je 0x401cc2
mov ecx, dword [str._unknown_]
mov dword [ebp - 0x108], ecx
mov edx, dword [0x420530]
mov dword [ebp - 0x104], edx
mov ax, word [0x420534]
mov word [ebp - 0x100], ax
push 0xfa
push 0
lea ecx, [ebp - 0xfe]
push ecx
call fcn.00404070
add esp, 0xc
mov edx, dword [ebp - 0x210c]
mov eax, dword [ebp + edx*4 - 0x2108]
mov dword [ebp - 0x2114], eax
mov ecx, dword [ebp - 0x2114]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2110], eax
cmp dword [ebp - 0x2110], 0
jne 0x401c22
jmp 0x401b77
lea edx, [ebp - 0x2124]
push edx
push 4
lea eax, [ebp - 0x2120]
push eax
mov ecx, dword [ebp - 0x2110]
push ecx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x401c47
jmp 0x401b77
push 0x104
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x2120]
push eax
mov ecx, dword [ebp - 0x2110]
push ecx
call sub.PSAPI.DLL_GetModuleBaseNameA
lea edx, [ebp - 0x1108]
push edx
call fcn.00407260
add esp, 4
push eax
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x1108]
push ecx
call fcn.004072f0
add esp, 0xc
test eax, eax
jne 0x401cb5
cmp dword [ebp + 0xc], 0
je 0x401ca1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2114]
mov dword [edx], eax
mov ecx, dword [ebp - 0x2110]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x401cc9
mov edx, dword [ebp - 0x2110]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401b77
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403419
mov esp, ebp
pop ebp
ret
Function at 0x401d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00403430
mov eax, dword [0x420a74]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1014], 0
push 0
push 0x80
push 3
push 0
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0xffffffff
je 0x401e2c
push 0
lea ecx, [ebp - 0x100c]
push ecx
push 0x1000
lea edx, [ebp - 0x1004]
push edx
mov eax, dword [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1018], eax
cmp dword [ebp - 0x1018], 0
je 0x401e1f
cmp dword [ebp - 0x100c], 0
jne 0x401dd6
jmp 0x401e1f
mov dword [ebp - 0x1008], 0
jmp 0x401df1
mov ecx, dword [ebp - 0x1008]
add ecx, 4
mov dword [ebp - 0x1008], ecx
mov edx, dword [ebp - 0x1008]
cmp edx, dword [ebp - 0x100c]
jae 0x401e1a
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 0x1014]
add ecx, dword [ebp + eax - 0x1004]
mov dword [ebp - 0x1014], ecx
jmp 0x401de2
jmp 0x401d9a
mov edx, dword [ebp - 0x1010]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1014]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403419
mov esp, ebp
pop ebp
ret

Function at 0x401e40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 3
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp eax, 1
je 0x401e72
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.LCU:_lcu_file_move:_error_moving_file___s__to___s_.
call fcn.00402180
add esp, 0xc
or eax, 0xffffffff
jmp 0x401e9a
push 0x1ff
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040782a
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.LCU:_INFO:_moved_file___s__to___s_.
call fcn.00402180
add esp, 0xc
xor eax, eax
pop ebp
ret

Function at 0x401ea0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, 1
je 0x401ed2
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.LCU:_lcu_file_copy:_error_copying_file___s__to___s_.
call fcn.00402180
add esp, 0xc
or eax, 0xffffffff
jmp 0x401efa
push 0x1ff
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040782a
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.LCU:_INFO:_copied_file___s__to___s_.
call fcn.00402180
add esp, 0xc
xor eax, eax
pop ebp
ret
Function at 0x401f00
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3258
call fcn.00403430
mov eax, dword [0x420a74]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x5c
mov eax, dword [ebp + 8]
add eax, 0x1024
push eax
call fcn.00404750
add esp, 8
mov dword [ebp - 0x324c], eax
cmp dword [ebp - 0x324c], 0
jne 0x401f53
push 0x2f
mov ecx, dword [ebp + 8]
add ecx, 0x1024
push ecx
call fcn.00404750
add esp, 8
mov dword [ebp - 0x324c], eax
cmp dword [ebp - 0x324c], 0
jne 0x401f6d
mov edx, dword [ebp + 8]
add edx, 0x1024
mov dword [ebp - 0x324c], edx
jmp 0x401f7c
mov eax, dword [ebp - 0x324c]
add eax, 1
mov dword [ebp - 0x324c], eax
push 0x1000
push 0
lea ecx, [ebp - 0x1108]
push ecx
call fcn.00404070
add esp, 0xc
push 0xfff
mov edx, dword [ebp - 0x324c]
push edx
lea eax, [ebp - 0x1108]
push eax
call fcn.00407370
add esp, 0xc
push 0xfff
mov ecx, dword [ebp - 0x324c]
push ecx
lea edx, [ebp - 0x2108]
push edx
call fcn.00407370
add esp, 0xc
push 0x420240
lea eax, [ebp - 0x1108]
push eax
call fcn.00407494
add esp, 8
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x1108]
test eax, eax
jne 0x401ff5
jmp 0x40212c
mov dword [ebp - 0x3250], 0xffffffff
mov dword [ebp - 0x3258], 0
lea ecx, [ebp - 0x1108]
push ecx
push 0x425320
push 0x420244
lea edx, [ebp - 0x108]
push edx
call fcn.004014a0
add esp, 0x10
lea eax, [ebp - 0x3248]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x3250], eax
lea edx, [ebp - 0x108]
push edx
push str.LCU:_lcu_exec_prune:_lcu_exec_prune:_scanning_fspec___s_.
call fcn.00402180
add esp, 8
cmp dword [ebp - 0x3250], 0xffffffff
jne 0x402079
lea eax, [ebp - 0x108]
push eax
push str.LCU:_lcu_exec_install:_lcu_exec_prune:_error:_fspec___s__is_invalid.
call fcn.00402180
add esp, 8
jmp 0x40212c
lea ecx, [ebp - 0x321c]
mov dword [ebp - 0x3254], ecx
mov edx, dword [ebp - 0x3248]
and edx, 0x10
je 0x402092
jmp 0x402103
lea eax, [ebp - 0x2108]
push eax
call fcn.00407260
add esp, 4
push eax
lea ecx, [ebp - 0x2108]
push ecx
mov edx, dword [ebp - 0x3254]
push edx
call fcn.004072f0
add esp, 0xc
test eax, eax
jne 0x4020be
jmp 0x402103
mov eax, dword [ebp - 0x3254]
push eax
push 0x425320
push str._s_s
lea ecx, [ebp - 0x3108]
push ecx
call fcn.004014a0
add esp, 0x10
push 4
push 0
lea edx, [ebp - 0x3108]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x3108]
push eax
push str.LCU:_lcu_exec_prune:_path___s__will_be_removed_upon_reboot.
call fcn.00402180
add esp, 8
lea ecx, [ebp - 0x3248]
push ecx
mov edx, dword [ebp - 0x3250]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402079
mov eax, dword [ebp - 0x3250]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403419
mov esp, ebp
pop ebp
ret