joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406820
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42a6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov esi, ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406853
sub eax, edx
inc eax
push eax
call fcn.00407d32
mov edi, eax
mov eax, esi
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406870
sub eax, edx
push esi
inc eax
push eax
push edi
call fcn.00409569
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x406987
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x406987
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4068c0
sub ecx, esi
je 0x4068f3
jmp 0x4068d0
mov al, byte [edx + edi]
cmp al, 0x41
jl 0x4068e0
cmp al, 0x5a
jg 0x4068e0
add al, 0x20
mov byte [edx + edi], al
mov eax, edi
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068e6
sub eax, esi
cmp edx, eax
jb 0x4068d0
lea ecx, [ebp - 0x10c]
xor edx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406900
sub ecx, esi
je 0x40693f
jmp 0x406910
mov al, byte [ebp + edx - 0x10c]
cmp al, 0x41
jl 0x406928
cmp al, 0x5a
jg 0x406928
add al, 0x20
mov byte [ebp + edx - 0x10c], al
lea ecx, [ebp - 0x10c]
inc edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406932
sub ecx, esi
cmp edx, ecx
jb 0x406910
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406967
test dl, dl
je 0x406963
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406967
add eax, 2
add ecx, 2
test dl, dl
jne 0x406947
xor eax, eax
jmp 0x40696c
sbb eax, eax
or eax, 1
test eax, eax
je 0x4069aa
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x4068b3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00409564
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082bf
mov esp, ebp
pop ebp
ret
push edi
call fcn.00409564
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
mov al, 1
pop ebx
call fcn.004082bf
mov esp, ebp
pop ebp
ret
Function at 0x407190
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x30
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0040cf60
mov eax, dword [0x42cfc8]
add esp, 0xc
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x30
mov dword [ebp - 0x48], 0x407160
mov dword [ebp - 0x28], str.EmptyClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x42cfc8]
push 0
push 0
push 0
push SysReAllocString
push 0
push SysReAllocString
push 0xcf0000
push str.Dont_beat_me__I_am_a_child___
push dword [ebp - 0x28]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 5
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call ebx
test eax, eax
je 0x40725c
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x20]
push eax
call esi
lea eax, [ebp - 0x20]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call ebx
test eax, eax
jne 0x407236
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418355
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a6dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040d20a
mov dword [ebp - 0x14], eax
cmp dword [0x42cf40], edi
jne 0x418446
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4183d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x418526
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x418526
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418526
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x42cf40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42cf44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42cf48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42cf50], eax
test eax, eax
je 0x418443
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42cf4c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41846b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41845e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x418480
push 4
pop eax
jmp 0x418528
cmp dword [ebp - 0x14], edi
je 0x418480
push dword [0x42cf40]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x418465
mov eax, dword [0x42cf4c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4184de
cmp dword [0x42cf50], esi
je 0x4184de
push eax
call ebx
push dword [0x42cf50]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4184de
test eax, eax
je 0x4184de
call ecx
test eax, eax
je 0x4184d3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4184d3
test byte [ebp - 8], 1
jne 0x4184de
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41850e
mov eax, dword [0x42cf44]
cmp eax, esi
je 0x41850b
push eax
call ebx
test eax, eax
je 0x41850b
call eax
mov edi, eax
test edi, edi
je 0x41850b
mov eax, dword [0x42cf48]
cmp eax, esi
je 0x41850b
push eax
call ebx
test eax, eax
je 0x41850b
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x42cf40]
call ebx
test eax, eax
je 0x418526
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x418528
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082bf
leave
ret
Function at 0x41b007
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004126ae
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41b03f
xor eax, eax
jmp 0x41b06b
cmp esi, dword [ebp - 4]
je 0x41b068
cmp dword [ebp + 0xc], 0
je 0x41b068
push dword [edi + 0x9c]
call fcn.0041ac15
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040d5b4
pop ecx
pop ecx
cmp esi, eax
je 0x41b03b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x5b5512
Capabilities:
Encode data using xor

Disassembly:
jbe 0x5b5583
inc esi
xor dword [edx], 0xffffffff
adc eax, 0x4d117ea6
rol byte [edi - 0x1c8118b5], cl
dec esp
xchg byte [ebp - 0x2a], dl
add dl, byte [esi + 0x6723b726]
adc eax, dword [ebx + 0x36826602]
jecxz 0x5b5564
rcl byte [edi - 0x3d]
sub dh, byte [edx + 0x3606a636]
adc edi, edi
loope 0x5b55a8
mov bl, 0x69
lea edx, [ebx + eax*8 + 6]
cmp byte [ebp - 0x4c], 0x12
xchg edi, eax
push cs
cwde
inc eax
loop 0x5b5565
mov edx, 0x9256bf0f
push edx
out 7, al
xchg edi, eax
inc edi
xchg edx, eax
cmpsd dword [esi], dword es:[edi]
inc edx
mul dword [ebx - 0x6d]
xchg ebx, eax
push ebx
mov eax, dword [edx - 0x75]
xor esp, dword [edi - 0x69ede16e]
mov byte [0x827726d7], al
je 0x5b5538
sbb byte [ebx], dl
xor ebp, dword [ecx + 0x42]
mov al, 0x6f
dec esi
inc esp
push 0xffffffffffffff86
into
cmp ecx, eax
or al, 0x93
sbb dl, byte [edx - 0x59]
enter 0xffffffffffff930c, 0x1a
push edx
cmpsd dword [esi], dword es:[edi]
xor ebp, dword [ebx - 0x70cbb8dd]
int3
push 0xfffffffffffffff3
ja 0x5b55d3
fild dword [ebx - 0x1cd5eebd]
movsb byte es:[edi], byte [esi]
adc al, al
int 0xf5
rcl bl, 1
imul dword [ebx + 0x62]
lodsb al, byte [esi]
push eax
or eax, dword [ebx - 0x2d]
inc ebp
inc di
lcall 0xb266, 0xbb525e4e
inc ebx
push cs
push ebp
pop ss
and al, 0xc5
xor al, 0x71
xor eax, 0xabd763ca
jno 0x5b5613
xor eax, 0xabd763ca
xor al, 0x82
rcl dword [ebx + 0x46], cl
pop edi
add ebp, dword [eax - 0x1b]
and al, bh
push ebx
push ss
add bl, bl
xor dh, byte [edi + 0x44d1b01f]
dec ebx
xor dword [edi + 0xe0abb43], 0x55
invalid
xchg esi, eax
pushal
adc dl, byte [edi]
outsd dx, dword [esi]
wait
jb 0x5b55ac
inc esp
scasb al, byte es:[edi]
inc esp
pop edi
mov dl, 0x51
mov bh, 0x61
adc eax, 0xb80b8657
aaa
invalid
Function at 0x7c5ead
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7ce388
cmp edx, dword [eax]
je 0x7c5ecf
add eax, 8
inc ecx
cmp eax, 0x7ce418
jl 0x7c5ec0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7ce388]
jne 0x7c5ffd
mov eax, dword [0xbd1ce4]
cmp eax, 1
je 0x7c5fd7
test eax, eax
jne 0x7c5f00
cmp dword [0x7ce2b4], 1
je 0x7c5fd7
cmp edx, 0xfc
je 0x7c5ffd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c5f37
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.007c6890
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c6d20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c5f7a
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c6d20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cb9e4
push edi
call fcn.007c8bf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.007c6890
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c68a0
lea eax, [ebp - 0xa0]
push 0x7cb9c4
push eax
call fcn.007c68a0
push dword [esi + 0x7ce38c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c68a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.007c8b64
add esp, 0x2c
pop edi
jmp 0x7c5ffd
lea eax, [ebp + 8]
lea esi, [esi + 0x7ce38c]
push 0
push eax
push dword [esi]
call fcn.007c6d20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401fd0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 0xffffffff
je 0x402000
test al, 0x10
jne 0x402018
test al, 1
je 0x401ff9
and al, 0xfe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0047ca60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402015
pop edi
pop esi
pop ebx
ret
push esi
call edi
mov ecx, dword [esp + 0x14]
mov edx, ecx
or edx, 0x10
cmp eax, edx
je 0x402029
push ecx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4063d0
Capabilities:
Get session user name

Disassembly:
sub esp, 0xcc
xor eax, eax
push ebx
mov ebx, dword [esp + 0xd8]
push ebp
mov ebp, dword [esp + 0xd8]
lea ecx, [ebx + ebx]
push esi
mov edx, ecx
push edi
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00478250
test eax, eax
je 0x406496
push 0x41
push 0
push 1
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
test esi, esi
jne 0x40642c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push 0x406530
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea ecx, [esp + 0x14]
push ecx
call fcn.0044c0ec
add esp, 4
cmp eax, ebx
jb 0x406478
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.0044c0c7
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
test esi, esi
je 0x406506
lea edx, [esp + 0x14]
push edx
call fcn.0044c0ec
add esp, 4
cmp eax, ebx
jb 0x4064e8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.0044c0c7
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x406518
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
Function at 0x4075b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x407735
push esi
call fcn.0044c0ec
add esp, 4
test eax, eax
je 0x407735
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407735
test bl, 1
je 0x4075fd
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x407724
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x46c]
push eax
call fcn.0044c0c7
lea ecx, [esp + 0x470]
push 0x5f86bc
push ecx
call fcn.0044c09d
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x10], ebp
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x468]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407712
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x3c]
push 0x5f8708
push ecx
call ebp
test eax, eax
je 0x4076f7
lea edx, [esp + 0x3c]
push 0x5f8704
push edx
call ebp
test eax, eax
je 0x4076f7
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x262]
mov word [esp + 0x260], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x260]
push esi
push eax
call fcn.0044c0c7
lea ecx, [esp + 0x268]
push 0x5f85cc
push ecx
call fcn.0044c09d
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.0044c09d
lea ecx, [esp + 0x278]
push ecx
call fcn.004075b0
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407679
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret
Function at 0x407750
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebx
push esi
mov esi, dword [esp + 0x670]
xor ebx, ebx
cmp esi, ebx
je 0x4078f6
push esi
call fcn.0044c0ec
add esp, 4
test eax, eax
je 0x4078f6
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
push esi
mov dword [esp + 0x24], ebx
call fcn.00404e30
add esp, 0x1c
test eax, eax
je 0x4078f6
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x4078f6
test al, 1
je 0x4077bc
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x4078e6
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bx
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push ecx
stosw word es:[edi], ax
call fcn.0044c0c7
lea edx, [esp + 0x470]
push 0x5f86bc
push edx
call fcn.0044c09d
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x22c]
mov dword [esp + 0x228], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x218]
lea ecx, [esp + 0x468]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4078d5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x5f8708
push edx
call ebp
test eax, eax
je 0x4078b6
lea eax, [esp + 0x248]
push 0x5f8704
push eax
call ebp
test eax, eax
je 0x4078b6
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.0044c0c7
lea edx, [esp + 0x1c]
push 0x5f85cc
push edx
call fcn.0044c09d
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0044c09d
lea edx, [esp + 0x2c]
push edx
call fcn.00407750
add esp, 0x1c
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407841
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
add esp, 0x664
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x664
ret
Function at 0x407960
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x404
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebp
mov ebp, dword [esp + 0x414]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x4079a1
mov eax, dword [esp + 0x420]
mov ecx, dword [esp + 0x418]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
test al, 1
je 0x4079b7
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x407a35
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push str._s.bak_08X
push edx
call fcn.0044cbf9
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call ebx
cmp eax, 0xffffffff
je 0x407a29
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._s.bak_08X
push ecx
call fcn.0044cbf9
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
inc esi
cmp esi, 0xa
jge 0x407a57
cmp eax, 0xffffffff
jne 0x4079f9
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x420]
mov edx, dword [esp + 0x418]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
Function at 0x407c80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a0c92
push eax
mov dword fs:[0], esp
sub esp, 0x268
push esi
mov esi, dword [esp + 0x27c]
push edi
xor edi, edi
cmp esi, edi
je 0x407ea8
push esi
call fcn.0044c0ec
add esp, 4
test eax, eax
je 0x407ea8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407ea8
test al, 0x10
je 0x407ea8
push ebx
push esi
lea ecx, [esp + 0x10]
call fcn.00588149
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], edi
call fcn.00584eb8
mov dword [esp + 0x24], edi
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x5f86bc
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0058837a
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.005880d5
cmp edi, 0xffffffff
mov ebx, 1
je 0x407e7a
mov esi, dword [esp + 0x288]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x54]
push 0x5f8708
push eax
call ebp
test eax, eax
je 0x407e5e
lea ecx, [esp + 0x54]
push 0x5f8704
push ecx
call ebp
test eax, eax
je 0x407e5e
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call fcn.00588149
mov al, byte [esp + 0x28]
mov byte [esp + 0x280], bl
test al, 0x10
push 0x5f85cc
je 0x407df1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0058837a
lea edx, [esp + 0x14]
mov byte [esp + 0x280], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00588314
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x288], 3
call fcn.00407c80
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], 2
call fcn.005880d5
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x18]
jmp 0x407e48
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0058837a
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x28c], 4
call fcn.00588314
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x288], 5
call fcn.005867cc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 4
call fcn.005880d5
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x20]
call fcn.005880d5
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 0
call fcn.005880d5
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407d4e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x27c], 0xffffffff
call fcn.005880d5
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
add esp, 0x274
ret
mov ecx, dword [esp + 0x270]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x274
ret