joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4497c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x4497fb
push 0x496900
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, esi
call fcn.00449450
mov edi, eax
test edi, edi
je 0x4497fb
inc dword [edi + 0x14]
push 0x496900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x44981f
test esi, esi
je 0x449817
push 0x496900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x449834
test esi, esi
jmp 0x44992a
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x449869
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x449926
push 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00465f10
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.00449490
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x4498ed
push eax
mov eax, esi
call fcn.00449610
add esp, 4
push esi
call fcn.004496a0
add esp, 4
test eax, eax
je 0x44991f
push esi
call fcn.00449540
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
mov ebx, 1
test eax, eax
je 0x449943
add eax, edi
je 0x44991f
push 0
push ebx
push edi
call eax
test eax, eax
jne 0x449940
mov eax, esi
call fcn.00449a90
cmp dword [ebp + 0xc], 0
je 0x449937
push 0x496900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ebx
test eax, eax
je 0x449974
push eax
call fcn.0045c95d
add esp, 4
mov edi, esi
mov dword [esi + 0x18], eax
call fcn.00449350
push 0x496900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], ebx
pop ebx
pop edi
mov dword [esi + 0x18], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x454783
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4924c4]
jne 0x45478d
repz ret
jmp fcn.0045c9af
Function at 0x45b44c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x45b473
call fcn.004564bb
mov dword [eax], esi
call fcn.004564a8
push 0x16
pop esi
mov dword [eax], esi
call fcn.0045f11b
mov eax, esi
jmp 0x45b4c8
test dword [ebp + 0xc], 0xfffffff9
jne 0x45b459
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45b4a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004564ce
pop ecx
call fcn.004564a8
mov eax, dword [eax]
jmp 0x45b4c8
test al, 0x10
jne 0x45b4c6
test al, 1
je 0x45b4c6
test byte [ebp + 0xc], 2
je 0x45b4c6
call fcn.004564bb
mov dword [eax], 5
call fcn.004564a8
mov dword [eax], 0xd
jmp 0x45b497
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46b72d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4924c4]
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.0045d515
and dword [ebp - 0x14], 0
cmp dword [0x49518c], 0
mov dword [ebp - 0x18], eax
jne 0x46b7e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46b888
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x46b888
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47aa5c
push ebx
mov dword [0x49518c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x495190], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x495194], eax
call edi
push eax
call esi
mov dword [0x49519c], eax
test eax, eax
je 0x46b7e0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x495198], eax
mov eax, dword [0x495198]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46b839
cmp dword [0x49519c], ecx
je 0x46b839
push eax
call esi
push dword [0x49519c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46b839
test ebx, ebx
je 0x46b839
call edi
test eax, eax
je 0x46b830
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46b830
test byte [ebp - 8], 1
jne 0x46b839
or dword [ebp + 0x10], 0x200000
jmp 0x46b86c
mov eax, dword [0x495190]
cmp eax, dword [ebp - 0x18]
je 0x46b86c
push eax
call esi
test eax, eax
je 0x46b86c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46b86c
mov eax, dword [0x495194]
cmp eax, dword [ebp - 0x18]
je 0x46b86c
push eax
call esi
test eax, eax
je 0x46b86c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49518c]
call esi
test eax, eax
je 0x46b888
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46b88a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00454783
leave
ret
Function at 0x401b66
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x420234]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x14
pop eax
xor ecx, ecx
push 4
pop edx
mov dword [0x421244], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040da75
mov dword [0x421240], eax
mov eax, dword [0x421244]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040da75
mov esi, eax
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x25
push ebx
mov dword [esi], str.version.dll
mov dword [esi + 4], str.dwmapi.dll
mov dword [esi + 8], 0x41a4f8
mov dword [esi + 0xc], str.ntmarta.dll
mov dword [esi + 0x10], str.winmm.dll
mov dword [esi + 0x14], str.dsound.dll
mov dword [esi + 0x18], str.powrprof.dll
mov dword [esi + 0x1c], str.d3d9.dll
mov dword [esi + 0x20], str.d3d8thk.dll
mov dword [esi + 0x24], str.mscms.dll
mov dword [esi + 0x28], str.userenv.dll
mov dword [esi + 0x2c], str.profapi.dll
mov dword [esi + 0x30], str.ieframe.dll
mov dword [esi + 0x34], str.oleacc.dll
mov dword [esi + 0x38], str.oleaccrc.dll
mov dword [esi + 0x3c], str.dbghelp.dll
mov dword [esi + 0x40], str.uxtheme.dll
mov dword [esi + 0x44], str.msasn1.dll
mov dword [esi + 0x48], str.crypt32.dll
mov dword [esi + 0x4c], 0x41a368
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x401ccd
push edi
push 0x41a364
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040db89
add esp, 0xc
cmp dword [0x421244], ebx
jle 0x401cc5
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0040db1a
push dword [esi + ebx*4]
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0040db89
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [0x421240]
mov dword [ecx + ebx*4], eax
inc ebx
cmp ebx, dword [0x421244]
jl 0x401c7f
push esi
call fcn.0040da00
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dada
leave
ret

Function at 0x4020ae
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x420234]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4020fa
xor al, al
jmp 0x402121
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40210f
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 0x10], 1
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040dada
leave
ret 4
Function at 0x40215b
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x420234]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x78]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40223f
lea ecx, [ebp - 0x80]
call fcn.0040102d
push ecx
push ecx
mov ecx, esp
push str._c_del__
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
lea eax, [ebp + 0x19c]
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push str._____NUL
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
xor eax, eax
mov esi, str.runas
cmp byte [ebp + 0x1a4], al
jne 0x4021f4
mov esi, str.open
push eax
push eax
lea ecx, [ebp - 0x80]
call fcn.00401062
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x80]
call fcn.00401471
mov bl, 1
lea ecx, [ebp + 0x19c]
call fcn.00401471
mov ecx, dword [ebp + 0x190]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040dada
add ebp, 0x194
leave
ret
xor bl, bl
jmp 0x40221b

Function at 0x4025b5
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x420234]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
mov esi, dword [ebp + 0x19c]
push edi
mov edi, ecx
lea ecx, [ebp - 0x80]
call fcn.0040102d
push ecx
push ecx
add edi, 0x1e4
mov ecx, esp
push edi
call fcn.00401037
lea ecx, [ebp - 0x80]
call fcn.00401479
lea ecx, [ebp - 0x80]
call fcn.00401052
test eax, eax
jne 0x402673
lea eax, [ebp - 0x78]
push eax
xor edi, edi
push edi
push edi
push 0x24
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x80]
call fcn.004014af
push ecx
push ecx
mov ecx, esp
push str.System32MacromedFlashFlashPlayerUpdateService.exe
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x80]
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40266c
push 0x41a350
lea ecx, [ebp - 0x80]
call fcn.004014af
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.00401037
lea ecx, [ebp - 0x80]
call fcn.00401471
mov ecx, dword [ebp + 0x190]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040dada
add ebp, 0x194
leave
ret 4
Function at 0x40274f
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push ecx
push ecx
mov ecx, esp
push str.AllowProtectedRenames
call fcn.0040140d
push ecx
push ecx
mov ecx, esp
push str.SYSTEMCurrentControlSetControlSession_Manager
call fcn.0040140d
push ecx
mov eax, esp
mov dword [eax], reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 4]
push eax
call fcn.00408c77
add esp, 0x1c
push 4
push 0
lea ecx, [ebp + 8]
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4027a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 8]
call fcn.00401471
leave
ret 8

Function at 0x402d02
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa4
mov eax, dword [0x420234]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
lea eax, [ebp - 0x20]
push eax
mov edi, ecx
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x402d99
cmp dword [ebp - 0x1c], 6
jae 0x402d73
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x402d99
mov dword [ebp - 0x2c], 0x220
mov dword [ebp - 0x28], 0x223
mov dword [ebp - 0x24], 0x225
xor esi, esi
push dword [ebp + esi*4 - 0x2c]
mov ecx, edi
call fcn.004020ae
test al, al
jne 0x402d99
inc esi
cmp esi, 3
jl 0x402d59
xor eax, eax
inc eax
jmp 0x402d9b
mov ecx, edi
call fcn.00402243
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x402d99
mov ecx, edi
call fcn.00402c57
cmp eax, 0x3000
jae 0x402d99
push 2
pop eax
jmp 0x402d9b
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.0040dada
add ebp, 0x78
leave
ret
Function at 0x403bff
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp byte [ebp + 8], bl
jne 0x403c43
cmp byte [esi + 0x108], bl
je 0x403d1d
call fcn.00402c57
cmp eax, 0x3000
jae 0x403d1d
mov ecx, esi
call fcn.00402243
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
je 0x403d1d
movzx eax, byte [esi + 0x108]
push ecx
push ecx
mov ecx, esp
push ebx
push 0xa
push eax
call fcn.00401427
push 0xb
push ebx
push ebx
mov ecx, esi
call fcn.00402b21
mov eax, dword [ebp + 0x1c]
neg eax
sbb eax, eax
and eax, 0x140
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], str.runas
cmp byte [esi + 0x108], bl
jne 0x403c97
mov dword [ebp - 0x30], str.open
lea ecx, [ebp + 0xc]
call fcn.00401062
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x2c], eax
call fcn.00401052
test eax, eax
jle 0x403cbb
lea ecx, [ebp + 0x14]
call fcn.00401062
mov dword [ebp - 0x28], eax
jmp 0x403cbe
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403d1d
cmp dword [ebp + 0x1c], ebx
je 0x403d09
cmp dword [ebp - 0x1c], 0x20
jbe 0x403d1d
cmp dword [ebp - 4], ebx
je 0x403d09
push 0x1b7740
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x1c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0xc]
call fcn.00401471
lea ecx, [ebp + 0x14]
call fcn.00401471
mov al, 1
jmp 0x403d2f
lea ecx, [ebp + 0xc]
call fcn.00401471
lea ecx, [ebp + 0x14]
call fcn.00401471
xor al, al
pop esi
pop ebx
leave
ret 0x18
Function at 0x405f01
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004059db
test byte [esi + 4], 0x19
mov ecx, edi
setne byte [ebp - 1]
call fcn.004059cc
xor ebx, ebx
cmp byte [ebp - 1], bl
jne 0x405f3d
lea ecx, [ebp + 8]
call fcn.00401471
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [esi], ebx
jne 0x405f87
push 0x20
call fcn.0040da75
mov edi, eax
pop ecx
cmp edi, ebx
je 0x405f5a
mov ecx, edi
call fcn.00408bdb
mov ecx, edi
jmp 0x405f5c
xor ecx, ecx
mov dword [esi], ecx
call fcn.00405db7
test al, al
jne 0x405f87
mov esi, dword [esi]
cmp esi, ebx
je 0x405f7b
mov ecx, esi
call fcn.00408be1
push esi
call fcn.0040da00
pop ecx
lea ecx, [ebp + 8]
call fcn.00401471
mov al, bl
jmp 0x405f36
push ecx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [esi + 0x10]
call fcn.00401479
push ebx
push ebx
push esi
push 0x405b0c
push ebx
push ebx
mov dword [esi + 4], 4
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0xc], eax
setne bl
jmp 0x405f7b

Function at 0x406a68
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp + 8]
mov byte [ebp - 1], 0
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x406aad
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00401471
pop esi
mov al, bl
pop ebx
leave
ret
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
je 0x406b0f
push edi
call fcn.0040da75
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x406af8
test edi, edi
jbe 0x406af4
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406af4
add esi, dword [ebp - 8]
cmp esi, edi
jb 0x406acd
cmp esi, edi
je 0x406b01
push ebx
call fcn.0040da00
pop ecx
jmp 0x406b0f
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
pop edi
jmp 0x406a9f
Function at 0x406b1e
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 1
push ecx
push ecx
mov edi, ecx
mov ecx, esp
push str.AllowProtectedRenames
call fcn.0040140d
push ecx
push ecx
mov ecx, esp
push str.SYSTEMCurrentControlSetControlSession_Manager
call fcn.0040140d
push ecx
mov eax, esp
mov dword [eax], reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 4]
push eax
call fcn.00408c77
mov eax, dword [eax]
add esp, 0x1c
mov esi, 0x41b658
test eax, eax
je 0x406bba
push ecx
push ecx
mov ecx, esp
push 0
push 0xa
push eax
call fcn.00401427
push ecx
push ecx
mov ecx, esp
push esi
call fcn.0040140d
push str.SYSTEMCurrentControlSetControlSession_ManagerAllowProtectedRenames
lea ecx, [ebp - 8]
call fcn.0040140d
mov ecx, eax
call fcn.004014d9
mov ecx, eax
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [edi]
push 0x40b
push 1
push 0
call fcn.00402b21
lea ecx, [ebp - 8]
call fcn.00401471
push 5
lea ecx, [ebp + 0x10]
call fcn.00401062
push eax
lea ecx, [ebp + 8]
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406c32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push ecx
mov ecx, esp
push 0
push 0xa
push eax
call fcn.00401427
push ecx
push ecx
mov ecx, esp
push esi
call fcn.0040140d
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00401037
mov ecx, eax
call fcn.004014d9
mov ecx, eax
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [edi]
push 0x415
push 1
push 0
call fcn.00402b21
lea ecx, [ebp - 8]
call fcn.00401471
lea ecx, [ebp + 8]
call fcn.00401471
lea ecx, [ebp + 0x10]
call fcn.00401471
pop edi
pop esi
leave
ret 0x10

Function at 0x406c48
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x406c56
xor al, al
leave
ret
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jbe 0x406c8a
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406c8a
add esi, dword [ebp - 4]
cmp esi, edi
jb 0x406c61
xor eax, eax
cmp esi, edi
pop edi
sete al
pop esi
leave
ret
Function at 0x406cac
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x7c0]
sub esp, 0x840
mov eax, dword [0x420234]
xor eax, ebp
mov dword [ebp + 0x7bc], eax
mov eax, dword [ebp + 0x7c8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x78], eax
call fcn.0040102d
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov ebx, eax
lea eax, [ebp + 0x3ac]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x406e03
or edi, 0xffffffff
test ebx, ebx
jl 0x406d4c
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jle 0x406d4c
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x3ac]
push esi
push eax
call fcn.0040e067
push edi
lea eax, [ebp + 0x3ac]
push eax
lea eax, [ebp + 0x5b4]
push esi
push eax
call fcn.0040df94
add esp, 0x20
jmp 0x406d84
lea eax, [ebp + 0x5b4]
push eax
push 0
push 0x41b700
lea eax, [ebp + 0x3ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406e34
lea eax, [ebp + 0x5b4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406e34
push 1
push 0x41a364
lea eax, [ebp + 0x5b4]
push esi
push eax
call fcn.0040e067
lea eax, [ebp + 0x5b4]
push edi
push eax
call fcn.0040df75
push eax
lea eax, [ebp + 0x5b4]
push eax
lea eax, [ebp + 0x1a4]
push esi
push eax
call fcn.0040df94
push edi
mov edi, str.fpb.tmp
push edi
call fcn.0040df75
push eax
push edi
lea eax, [ebp + 0x5b4]
push esi
push eax
call fcn.0040e067
add esp, 0x40
push 0
lea eax, [ebp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406e03
push ecx
push ecx
lea eax, [ebp + 0x5b4]
mov ecx, esp
push eax
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.00401479
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x80]
push eax
call fcn.00401037
lea ecx, [ebp - 0x80]
call fcn.00401471
mov ecx, dword [ebp + 0x7bc]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dada
add ebp, 0x7c0
leave
ret 4
mov ecx, dword [ebp - 0x78]
call fcn.0040102d
jmp 0x406e0f