joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403703
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
push 0x49e540
call fcn.00438100
mov dword [ebp - 0x28], ecx
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x403729
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 8]
mov eax, ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40374b
mov ecx, dword [ebp - 0x24]
mov dword [edx], ecx
cmp dword [ebp - 0x24], esi
je 0x40375a
cmp dword [ebp - 0x24], 7
jne 0x403887
test ebx, ebx
je 0x403887
cmp dword [ebx], edi
je 0x403887
test eax, eax
je 0x403779
cmp eax, 0xea
jne 0x403887
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov dword [ebx], ecx
cmp dword [ebp + 0x10], edi
je 0x403795
push ecx
push edi
push dword [ebp + 0x10]
call fcn.0043d1d0
add esp, 0xc
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x20]
lea ecx, [edx + 8]
cmp edx, ecx
sbb eax, eax
test ecx, eax
je 0x403800
cmp edx, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x4037db
cmp edx, ecx
sbb eax, eax
and eax, ecx
call fcn.00438160
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x30], esi
test esi, esi
je 0x403802
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x30], esi
jmp 0x403802
cmp dword [ebp - 0x20], ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.0044a832
pop ecx
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x403802
mov dword [esi], 0xdddd
add esi, 8
mov dword [ebp - 0x34], esi
jmp 0x403802
mov esi, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x403838
test esi, esi
jne 0x403841
push 0xe
pop eax
jmp 0x403887
push dword [ebp - 0x20]
push edi
push esi
call fcn.0043d1d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 8]
mov eax, dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x40387e
push ebx
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
call fcn.0040350f
mov edi, eax
push esi
call fcn.00401321
pop ecx
mov eax, edi
lea esp, [ebp - 0x44]
call fcn.00438149
ret 0x10
Function at 0x4047a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a0
mov eax, dword [0x4a9074]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x89c], esi
push edi
test esi, esi
je 0x404975
xor eax, eax
cmp ax, word [esi]
je 0x404975
test ebx, ebx
je 0x404975
push 0x208
xor edi, edi
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.0043d1d0
and dword [ebp - 0x634], 0
xor eax, eax
mov dword [ebp - 0x644], edi
lea edi, [ebp - 0x640]
stosd dword es:[edi], eax
push esi
push str._s___
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x630]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x624]
push eax
call fcn.0040681e
push 0x250
xor esi, esi
lea eax, [ebp - 0x894]
push esi
push eax
call fcn.0043d1d0
add esp, 0x24
lea eax, [ebp - 0x894]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x898], edi
cmp edi, 0xffffffff
je 0x404966
cmp dword [ebp - 0x894], 0x10
jne 0x404915
xor eax, eax
cmp ax, word [ebp - 0x868]
je 0x404915
lea ecx, [ebp - 0x868]
cmp ax, word [ebp - 0x214]
jne 0x4048b7
lea edx, [ebp - 0x644]
call fcn.0040476a
test eax, eax
je 0x404915
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.00448c08
add esp, 0xc
jmp 0x404915
lea edx, [ebp - 0x634]
call fcn.0040476a
test eax, eax
je 0x404915
mov ecx, esi
mov eax, dword [ebp + ecx*4 - 0x634]
cmp eax, dword [ebp + ecx*4 - 0x644]
jne 0x4048e0
inc ecx
cmp ecx, 4
jl 0x4048c8
jmp 0x404915
jbe 0x404915
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.00448c08
lea esi, [ebp - 0x634]
add esp, 0xc
lea edi, [ebp - 0x644]
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 edi, dword [ebp - 0x898]
xor esi, esi
lea eax, [ebp - 0x894]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404860
cmp ax, word [ebp - 0x214]
je 0x404966
push dword [ebp - 0x89c]
mov esi, 0x104
push esi
push ebx
call fcn.00448c08
push 0x48e794
push esi
push ebx
call fcn.0044a3cd
lea eax, [ebp - 0x214]
push eax
push esi
push ebx
call fcn.0044a3cd
xor esi, esi
add esp, 0x24
inc esi
test edi, edi
je 0x404971
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x404977
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437519
mov esp, ebp
pop ebp
ret
Function at 0x404988
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x31c
mov eax, 0x479cfc
call fcn.00438059
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x208
xor esi, esi
mov dword [ebp - 0x328], ebx
push esi
push eax
call fcn.0043d1d0
add esp, 0xc
test edi, edi
je 0x4049f2
cmp word [edi], si
je 0x4049f2
push edi
mov edi, 0x104
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00448c08
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00449ee1
add esp, 0x14
cmp word [ebp + eax*2 - 0x21e], 0x5c
je 0x404a43
jmp 0x404a2e
mov edi, 0x104
lea eax, [ebp - 0x21c]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x404a15
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404b13
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.0043c424
pop ecx
pop ecx
test eax, eax
je 0x404a43
xor ecx, ecx
mov word [eax], cx
push 0x48e794
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0044a3cd
add esp, 0xc
push dword [ebx]
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0044a3cd
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404a6f
push 2
pop eax
jmp 0x404b13
lea edi, [ebx + 4]
push edi
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x404a90
cmp dword [edi], esi
je 0x404a90
xor eax, eax
jmp 0x404b13
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x320]
call fcn.0040615a
mov byte [ebp - 4], 1
push dword [eax]
call fcn.0043237a
mov edi, eax
lea eax, [ebp - 0x31c]
pop ecx
cmp dword [ebp - 0x320], eax
je 0x404aed
push dword [ebp - 0x320]
call fcn.00448c6c
pop ecx
jmp 0x404aed
test edi, edi
je 0x404af5
mov eax, edi
jmp 0x404b13
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x404b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
call fcn.00437fa6
ret 4
Function at 0x404f98
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a9074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0x500
xor ebx, ebx
push eax
push 8
mov dword [ebp - 0x10], ebx
mov esi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40507d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x405001
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40507c
push dword [ebp - 0x18]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40507c
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40507c
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40507c
mov edi, ebx
cmp dword [esi], ebx
jbe 0x40507c
lea eax, [esi + 4]
mov dword [ebp - 0x1c], eax
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x405071
mov eax, dword [ebp - 0x1c]
inc edi
add eax, 8
mov dword [ebp - 0x1c], eax
cmp edi, dword [esi]
jb 0x405052
jmp 0x40507c
test byte [esi + edi*8 + 8], 4
push 1
pop eax
cmovne ebx, eax
pop edi
cmp dword [ebp - 0x10], 0
je 0x40508c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x405097
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x14], 0
je 0x4050a6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00437519
mov esp, ebp
pop ebp
ret 4
Function at 0x4053f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x4a9074]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 8
mov ebx, ecx
lea edi, [ebp - 0x28]
pop ecx
push 8
mov esi, str.CommonFiles_Dir
lea eax, [ebp - 0x45c]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, str.McAfeePlatform
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, 0x410
xor esi, esi
push edi
push esi
push eax
call fcn.0043d1d0
add esp, 0xc
mov dword [ebp - 0x460], esi
test ebx, ebx
je 0x405575
push 0x10
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], edi
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x28]
push eax
push str.SOFTWAREMcAfeeMSC
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403892
add esp, 0x1c
mov edi, 0x208
test eax, eax
jne 0x4054ae
cmp dword [ebp - 0x460], 1
jne 0x4054ae
lea eax, [ebp - 0x45c]
push 0x207
push eax
call fcn.00449ee1
pop ecx
pop ecx
test eax, eax
jne 0x4054e5
xor eax, eax
mov word [ebp - 0x45c], ax
lea eax, [ebp - 0x45c]
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x405569
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x45c]
push edi
push eax
call fcn.0044a3cd
add esp, 0xc
lea eax, [ebp - 0x45c]
push 0x207
push eax
call fcn.00449ee1
pop ecx
pop ecx
push 0x5c
lea eax, [ebp + eax*2 - 0x45e]
pop ecx
cmp cx, word [eax]
je 0x405522
push 0x48e794
lea eax, [ebp - 0x45c]
push edi
push eax
call fcn.0044a3cd
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x405578
push 0x22
pop ecx
cmp cx, word [ebp - 0x45c]
lea edx, [ebp - 0x45c]
lea eax, [ebp - 0x45a]
cmovne eax, edx
push eax
push 0x104
push ebx
call fcn.00448c08
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x405578
push ecx
mov edx, ebx
mov ecx, ebx
call fcn.0040558b
pop ecx
test eax, eax
jne 0x405578
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x405578
xor eax, eax
mov esi, 0xe8
mov word [ebx], ax
jmp 0x405578
push 0x57
pop esi
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437519
mov esp, ebp
pop ebp
ret

Function at 0x405a3b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a9074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00405a1b
cmp dword [eax + 0x14], 8
jb 0x405a5d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405a71
test al, 0x10
jne 0x405a71
mov bl, 1
jmp 0x405a73
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040626d
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00437519
mov esp, ebp
pop ebp
ret
Function at 0x405c9a
Capabilities:
Copy file

Disassembly:
push 0x410
mov eax, 0x479e21
call fcn.00437feb
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x41c]
xor ebx, ebx
mov dword [ebp - 0x318], ebx
call fcn.004050ba
lea ecx, [ebp - 0x41c]
mov dword [ebp - 4], ebx
call fcn.004051f0
test eax, eax
jne 0x405ea2
mov ecx, 0x82
lea edi, [ebp - 0x21c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x3a4]
test eax, eax
je 0x405ea2
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call eax
pop ecx
pop ecx
test eax, eax
jne 0x405ea2
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00406214
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x264]
call fcn.00406245
push ebx
xor eax, eax
mov dword [ebp - 0x238], 7
push 1
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x24c], ax
call fcn.0040626d
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x310], esp
mov edi, 0x48ecbc
push edi
call fcn.00406214
sub esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
push esp
call fcn.00405a90
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 2
call fcn.004058d1
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 4
call fcn.00405a3b
test al, al
jne 0x405e7e
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x314], esp
push edi
call fcn.00406214
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 5
push eax
sub esp, 0x18
mov ecx, esp
push 0x48ecd0
call fcn.00406214
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00405924
mov byte [ebp - 4], 6
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00405924
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 9
call fcn.00405aaa
lea ecx, [ebp - 0x2dc]
call fcn.00405a3b
test al, al
je 0x405e6f
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x294]
call fcn.00405a1b
mov edi, eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x2dc]
call fcn.00405a1b
cmp dword [edi + 0x14], 8
jb 0x405e42
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x405e4a
mov eax, dword [eax]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.0040626d
push ebx
push 1
lea ecx, [ebp - 0x2ac]
call fcn.0040626d
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 4
call fcn.00405aaa
push esi
lea ecx, [ebp - 0x294]
call fcn.00405a1b
lea ecx, [ebp - 0x294]
call fcn.00405aaa
lea ecx, [ebp - 0x264]
call fcn.00405aaa
jmp 0x405eae
push 0x48e4d0
mov ecx, esi
call fcn.00406214
cmp dword [ebp - 0x418], 0
je 0x405ec3
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, esi
call fcn.00437f95
ret 4
Function at 0x407a60
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a9074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x407b72
xor ebx, ebx
cmp word [esi], bx
je 0x407b72
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407aa5
test al, 0x10
je 0x407aa5
mov eax, 0xb7
jmp 0x407b75
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0043d1d0
add esp, 0xc
lea eax, [ebp - 0x414]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x407adb
mov eax, 0x2bf
jmp 0x407b75
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0043d1d0
push 0x5c
push esi
call fcn.0043b0b5
add esp, 0x14
push esi
test eax, eax
je 0x407b33
cmp eax, esi
jne 0x407b2c
mov ax, word [ebp - 0x414]
mov word [ebp - 0x20c], ax
mov ax, word [ebp - 0x412]
mov word [ebp - 0x20a], ax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040792c
jmp 0x407b5e
cmp word [esi + 2], 0x3a
je 0x407b51
lea eax, [ebp - 0x414]
push eax
push 0x48f1b8
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00407999
add esp, 0x14
jmp 0x407b5e
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00407895
lea ecx, [ebp - 0x20c]
call fcn.00407b86
neg eax
sbb eax, eax
and eax, 0x52
jmp 0x407b75
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437519
mov esp, ebp
pop ebp
ret

Function at 0x407b86
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x4a9074]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x407bbd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407bbd
test al, 0x10
je 0x407bbd
xor eax, eax
jmp 0x407c31
push 0x5c
push esi
call fcn.0043b0b5
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x407bb9
push 0x5c
push esi
call fcn.0043c424
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x407bb9
cmp ebx, edi
je 0x407c28
mov ebx, 0x208
lea eax, [esp + 0x10]
push ebx
push 0
push eax
call fcn.0043d1d0
add esp, 0xc
lea eax, [esp + 0x10]
sub edi, esi
sar edi, 1
push edi
push esi
push 0x104
push eax
call fcn.004078da
add edi, edi
cmp edi, ebx
jae 0x407c46
xor edx, edx
lea ecx, [esp + 0x10]
xor eax, eax
inc edx
mov word [esp + edi + 0x10], ax
call fcn.00407b86
test eax, eax
jne 0x407c31
push ecx
mov ecx, esi
call fcn.00407c4c
pop ecx
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00437519
mov esp, ebp
pop ebp
ret
call fcn.0043764d
int3
Function at 0x407c4c
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
push edi
test esi, esi
je 0x407ca7
mov edi, 0x104
push edi
push esi
call fcn.00449ee1
pop ecx
pop ecx
cmp eax, 3
jbe 0x407ca7
push edi
push esi
call fcn.00449ee1
pop ecx
pop ecx
cmp eax, 3
jbe 0x407c89
mov ecx, esi
call fcn.00407cad
test eax, eax
jne 0x407c89
xor edx, edx
mov ecx, esi
call fcn.00407d21
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407caa
xor eax, eax
jmp 0x407caa
push 0x57
pop eax
pop edi
pop esi
ret

Function at 0x407d21
Capabilities:
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x4a9074]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
push edi
push 0x250
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], edx
push 0
push eax
mov esi, ecx
call fcn.0043d1d0
add esp, 0xc
lea eax, [esp + 0x268]
push 0x208
push 0
push eax
call fcn.0043d1d0
add esp, 0xc
test esi, esi
je 0x407ec1
xor eax, eax
cmp ax, word [esi]
je 0x407ec1
mov ebx, 0x104
push ebx
push esi
call fcn.00449ee1
pop ecx
pop ecx
cmp eax, 3
jbe 0x407ec1
push esi
push ebx
lea eax, [esp + 0x270]
push eax
call fcn.00407895
lea eax, [esp + 0x268]
push 0x5c
push eax
call fcn.0043c424
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x407ec1
lea eax, [esp + 0x18]
add ebx, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407ec1
lea ecx, [esp + 0x268]
mov eax, ebx
sub eax, ecx
xor esi, esi
sar eax, 1
mov ecx, 0x104
inc esi
sub ecx, eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x44]
push eax
push ecx
push ebx
call fcn.00407895
test byte [esp + 0x18], 0x10
je 0x407e31
push 0x2e
pop eax
cmp ax, word [esp + 0x44]
je 0x407e9a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407e9a
mov edx, eax
lea ecx, [esp + 0x268]
call fcn.00407ed8
jmp 0x407e8b
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407e9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xf
je 0x407e9a
cmp eax, 2
je 0x407e9a
cmp eax, 3
je 0x407e9a
push ecx
lea ecx, [esp + 0x26c]
call fcn.00407fc0
neg eax
pop ecx
sbb eax, eax
inc eax
test esi, esi
je 0x407e98
test eax, eax
je 0x407e98
xor esi, esi
inc esi
jmp 0x407e9a
xor esi, esi
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x407df8
test edi, edi
je 0x407ebd
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x407ec3
xor eax, eax
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00437519
mov esp, ebp
pop ebp
ret
Function at 0x407ed8
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4a9074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x407fac
xor eax, eax
cmp ax, word [esi]
je 0x407fac
mov ebx, 0x104
push ebx
push esi
call fcn.00449ee1
pop ecx
pop ecx
cmp eax, 3
jbe 0x407fac
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0043d1d0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x48f1b0
push esi
push 0x48f1b8
push ebx
push eax
call fcn.00407999
add esp, 0x14
lea ecx, [ebp - 0x210]
mov edx, edi
call fcn.00407d21
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x407fa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x407f8b
cmp eax, 0x91
jne 0x407fa8
push ecx
mov ecx, esi
call fcn.00407fc0
neg eax
pop ecx
sbb eax, eax
inc eax
test edi, edi
je 0x407fa6
test eax, eax
je 0x407fa6
xor edi, edi
inc edi
jmp 0x407fa8
xor edi, edi
mov eax, edi
jmp 0x407fae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437519
mov esp, ebp
pop ebp
ret

Function at 0x407fc0
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
test esi, esi
je 0x40800e
xor eax, eax
cmp ax, word [esi]
je 0x40800e
call fcn.00408016
test eax, eax
jne 0x407ff0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40800a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov edi, eax
mov eax, edi
jmp 0x408011
push 0x57
pop eax
pop edi
pop esi
pop ecx
pop ebp
ret

Function at 0x408415
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
test eax, eax
je 0x40849e
xor ecx, ecx
cmp cx, word [eax]
je 0x40849e
xor ebx, ebx
cmp dword [esi + 0x20], ebx
je 0x408438
mov eax, 0xb7
jmp 0x4084a1
push edi
push ebx
push 0xa0
push dword [ebp + 0xc]
mov edi, ebx
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x408468
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esi + 0x20], ebx
jmp 0x408499
cmp dword [ebp + 0xc], 3
jne 0x40847b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x408499
cmp dword [ebp + 0xc], 2
jne 0x408499
push ebx
lea ecx, [ebp + 8]
mov word [ebp + 0xc], 0xfeff
push ecx
push 2
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
pop edi
jmp 0x4084a1
push 0x57
pop eax
pop esi
pop ebx
pop ebp
ret 8