joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435f4c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor eax, eax
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], esi
sete al
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x436025
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x435f93
cmp eax, 0x50
je 0x435f8b
cmp eax, 0xb7
jne 0x435f93
xor edi, edi
inc edi
jmp 0x436025
cmp eax, 3
jne 0x436015
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x43600e
cmp ax, 0x5c
jne 0x435faa
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x435fa2
test esi, esi
je 0x43600e
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.00436be2
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x436025
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x436025
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435ff6
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x436025
push edi
push 0x3b1
push str.fileutil.cpp
call fcn.00432f06
jmp 0x436025
mov edi, 0x80070003
jmp 0x436025
cmp eax, esi
jle 0x436023
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x43607f
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x436099
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], esi
je 0x4360a2
or dword [ebp - 4], 2
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x43616b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x4360d9
cmp eax, 0x50
je 0x4360d1
cmp eax, 0xb7
jne 0x4360d9
xor edi, edi
inc edi
jmp 0x43616b
cmp eax, 3
jne 0x43615b
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x436154
cmp ax, 0x5c
jne 0x4360f0
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4360e8
test esi, esi
je 0x436154
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.00436be2
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x43616b
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x43616b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43613c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x43616b
push edi
push 0x424
push str.fileutil.cpp
call fcn.00432f06
jmp 0x43616b
mov edi, 0x80070003
jmp 0x43616b
cmp eax, esi
jle 0x436169
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4361cd
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call fcn.00435d1f
test eax, eax
je 0x43625b
test byte [ebp - 4], 7
push esi
push edi
mov edi, 0xffff
mov esi, 0x80070000
je 0x436228
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x436228
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43621a
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x436228
push ebx
push 0x519
jmp 0x43624f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x436259
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436243
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x436259
push ebx
push 0x51f
push str.fileutil.cpp
call fcn.00432f06
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x436262
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jne 0x4362bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4362a1
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x4362bc
push esi
push 0x118
push str.fileutil.cpp
call fcn.00432f06
jmp 0x436365
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4362db
mov esi, 0x8007000e
push esi
push 0x11c
jmp 0x4362ad
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x43630a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4362fc
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x43630a
push esi
push 0x120
jmp 0x43633d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4522e4
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x436349
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436331
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x436349
push esi
push 0x125
push str.fileutil.cpp
call fcn.00432f06
jmp 0x43635c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x436980
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004284d0
add esp, 0xc
cmp dword [0x457f1c], 0
jne 0x436a8d
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, word [ebp - 0xc]
movzx ecx, word [ebp - 0xa]
shl eax, 0x10
or eax, ecx
cmp dword [ebp - 0x11c], 4
mov dword [0x457f20], eax
jne 0x4369ff
mov dword [0x457f1c], 1
jmp 0x436a8d
cmp dword [ebp - 0x11c], 5
jne 0x436a4c
cmp dword [ebp - 0x118], 0
jne 0x436a1d
mov dword [0x457f1c], 2
jmp 0x436a8d
cmp dword [ebp - 0x118], 1
jne 0x436a32
mov dword [0x457f1c], 3
jmp 0x436a8d
xor eax, eax
cmp dword [ebp - 0x118], 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
mov dword [0x457f1c], eax
jmp 0x436a8d
cmp dword [ebp - 0x11c], 6
jne 0x436a83
cmp dword [ebp - 0x118], 0
jne 0x436a6c
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x436a45
cmp dword [ebp - 0x118], 1
jne 0x436a83
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x436a45
mov dword [0x457f1c], 9
mov eax, dword [0x457f1c]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [0x457f20]
pop edi
mov dword [ebx], eax
xor ecx, ebp
pop ebx
call fcn.0042854a
leave
ret 8

Function at 0x436b28
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call fcn.00436aab
cmp dword [ebp - 0x14], ebx
je 0x436b64
mov dword [esi], 1
jmp 0x436b98
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]
mov dword [esi], eax
cmp eax, ebx
je 0x436b98
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x436b98
mov dword [esi], ebx
cmp dword [ebp - 0x10], ebx
pop esi
pop ebx
je 0x436ba7
push dword [ebp - 0x10]
call fcn.00430887
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0042854a
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x436bdb
test al, 0x10
je 0x436bdb
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x436bd8
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x436be2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x436caa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x436caa
cmp eax, 3
je 0x436c23
push edi
push ebx
call fcn.00436bb7
test eax, eax
jne 0x436caa
movzx eax, word [ebx]
push esi
xor esi, esi
mov ecx, ebx
test ax, ax
je 0x436c47
cmp ax, 0x5c
jne 0x436c38
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x436c30
test esi, esi
jne 0x436c5b
mov edi, 0x80070003
push edi
push 0x7a
push str.dirutil.cpp
call fcn.00432f06
jmp 0x436ca9
push dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.00436be2
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x436ca9
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x436ca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x436c95
xor edi, edi
inc edi
jmp 0x436ca9
test eax, eax
jle 0x436ca3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x436ca9
xor edi, edi
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x437ff2
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x438044
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43802f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jns 0x438044
push esi
push 0x20
push str.inetutil.cpp
call fcn.00432f06
jmp 0x438050
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x438296
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2470
call fcn.0042ef60
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x241c], 0
mov dword [ebp - 0x2434], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2430], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x2428], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2424], eax
mov eax, dword [ebp + 0x20]
push 0x3c
mov dword [ebp - 0x242c], eax
mov eax, dword [ebp + 0x24]
pop esi
push esi
mov dword [ebp - 0x2420], eax
lea eax, [ebp - 0x2470]
push 0
push eax
call fcn.004284d0
mov dword [ebp - 0x2470], esi
xor esi, esi
add esp, 0xc
cmp edi, esi
je 0x43832a
lea eax, [ebp - 0x410]
mov dword [ebp - 0x2460], eax
mov dword [ebp - 0x245c], 0x101
mov eax, 0x81
cmp dword [ebp - 0x2428], esi
je 0x438349
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x2454], ecx
mov dword [ebp - 0x2450], eax
cmp dword [ebp - 0x2424], esi
je 0x438363
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x244c], ecx
mov dword [ebp - 0x2448], eax
mov eax, 0x801
cmp dword [ebp - 0x242c], esi
je 0x438382
lea ecx, [ebp - 0x1414]
mov dword [ebp - 0x2444], ecx
mov dword [ebp - 0x2440], eax
cmp dword [ebp - 0x2420], esi
je 0x43839c
lea ecx, [ebp - 0x2418]
mov dword [ebp - 0x243c], ecx
mov dword [ebp - 0x2438], eax
lea eax, [ebp - 0x2470]
push eax
push 0x90000000
push esi
push dword [ebp - 0x2434]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4383f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4383cd
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x4383e1
mov dword [ebp - 0x241c], 0x80004005
push dword [ebp - 0x241c]
push 0x5e
push str.uriutil.cpp
call fcn.00432f06
jmp 0x4384dc
cmp ebx, esi
je 0x438404
mov eax, dword [ebp - 0x2464]
mov dword [ebx], eax
cmp edi, esi
je 0x438428
push dword [ebp - 0x245c]
push dword [ebp - 0x2460]
push edi
call fcn.00431729
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x4384dc
mov eax, dword [ebp - 0x2430]
cmp eax, esi
je 0x43843c
mov cx, word [ebp - 0x2458]
mov word [eax], cx
cmp dword [ebp - 0x2428], esi
je 0x438465
push dword [ebp - 0x2450]
push dword [ebp - 0x2454]
push dword [ebp - 0x2428]
call fcn.00431729
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x4384dc
cmp dword [ebp - 0x2424], esi
je 0x43848e
push dword [ebp - 0x2448]
push dword [ebp - 0x244c]
push dword [ebp - 0x2424]
call fcn.00431729
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x4384dc
cmp dword [ebp - 0x242c], esi
je 0x4384b7
push dword [ebp - 0x2440]
push dword [ebp - 0x2444]
push dword [ebp - 0x242c]
call fcn.00431729
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x4384dc
cmp dword [ebp - 0x2420], esi
je 0x4384dc
push dword [ebp - 0x2438]
push dword [ebp - 0x243c]
push dword [ebp - 0x2420]
call fcn.00431729
mov dword [ebp - 0x241c], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x241c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042854a
leave
ret 0x20
Function at 0x403396
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4033c1
mov ecx, dword [0x429ab8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x420ef4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040349e
cmp eax, esi
jl 0x403498
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00406215
test eax, eax
je 0x403488
push dword [ebp + 8]
add dword [0x420ef4], 4
call fcn.0040349e
mov ebx, eax
cmp ebx, esi
jl 0x403496
cmp dword [ebp + 0x10], esi
jne 0x403464
cmp dword [ebp + 8], esi
jle 0x403496
mov esi, 0x414ef0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403426
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00406215
test eax, eax
je 0x403488
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00406244
test eax, eax
je 0x403460
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x420ef4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403415
jmp 0x403496
push 0xfffffffffffffffe
jmp 0x40348a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40346f
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40348d
push 0xfffffffffffffffd
pop eax
jmp 0x403498
mov ebx, dword [ebp - 4]
add dword [0x420ef4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405c85
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x425f50], 0x44
push eax
xor eax, eax
push 0x425f50
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405cc4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405cc8
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405d66
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040616d
mov edi, eax
cmp edi, 0xffffffff
je 0x405da7
test byte [esp + 0x10], 1
push esi
je 0x405d89
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405d8f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405d98
xor eax, eax
inc eax
jmp 0x405da9
test byte [esp + 0x10], 4
jne 0x405da7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405dae
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00406079
test bl, 8
mov dword [ebp - 8], eax
je 0x405ded
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429ae8], eax
jmp 0x405f6a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405e07
test eax, eax
je 0x405f18
test bl, 2
je 0x405f18
mov esi, 0x424f50
push edi
push esi
call fcn.004066a2
cmp dword [ebp + 8], 0
je 0x405e26
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405e2c
push edi
call fcn.00405fbd
cmp word [edi], 0
jne 0x405e3c
cmp word [0x424f50], 0x5c
jne 0x405e47
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f0d
cmp word [ebp - 0x22c], 0x2e
jne 0x405e91
cmp word [ebp - 0x22a], 0
je 0x405ef0
cmp word [ebp - 0x22a], 0x2e
jne 0x405e91
cmp word [ebp - 0x228], 0
je 0x405ef0
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004066a2
test byte [ebp - 0x258], 0x10
je 0x405ebc
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ef0
push dword [ebp + 0xc]
push edi
call fcn.00405dae
jmp 0x405ef0
push dword [ebp - 4]
push edi
call fcn.00405d66
test eax, eax
jne 0x405ee8
cmp dword [ebp - 4], eax
je 0x405ee0
push edi
push 0xfffffffffffffff1
call fcn.00405727
push 0
push edi
call fcn.00406462
jmp 0x405ef0
inc dword [0x429ae8]
jmp 0x405ef0
push edi
push 0xfffffffffffffff2
call fcn.00405727
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405e69
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405f18
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405f6a
cmp dword [ebp - 8], esi
jne 0x405f2c
inc dword [0x429ae8]
jmp 0x405f6a
push edi
call fcn.004069ff
test eax, eax
je 0x405f6a
push edi
call fcn.00405f71
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405d66
test eax, eax
jne 0x405f62
cmp dword [ebp - 4], esi
je 0x405f24
push edi
push 0xfffffffffffffff1
call fcn.00405727
push esi
push edi
call fcn.00406462
jmp 0x405f6a
push edi
push 0xffffffffffffffe5
call fcn.00405727
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406079
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425750
push esi
call fcn.004066a2
push esi
call fcn.0040601c
mov edi, eax
test edi, edi
jne 0x40609a
xor eax, eax
jmp 0x4060f2
push edi
call fcn.00406950
test byte [0x429a78], 0x80
je 0x4060b7
mov ax, word [edi]
test ax, ax
je 0x406096
cmp ax, 0x5c
je 0x406096
sub edi, esi
sar edi, 1
jmp 0x4060d1
call fcn.004069ff
test eax, eax
je 0x4060cb
test byte [eax], 0x10
je 0x406096
push esi
call fcn.00405fbd
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4060bd
call fcn.00405f71
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40616d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40618c
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406192
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4061c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a5a8]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a5ac]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406211
test edi, edi
jne 0x4061ce
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40620b
Function at 0x4062e8
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4265e8], 0x55004e
mov dword [0x4265ec], 0x4c
mov edi, 0x400
mov ebp, 0x4265e8
je 0x40633e
push 1
push 0
push esi
call fcn.00406192
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40645d
cmp eax, edi
jg 0x40645d
mov esi, 0x426de8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40645d
cmp eax, edi
jg 0x40645d
push esi
push ebp
push str._ls_ls_r_n
push 0x4261e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x429a70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004066df
push 4
push 0xc0000000
push esi
call fcn.00406192
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40645d
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406456
push edi
push esi
push ebp
call fcn.00406215
test eax, eax
je 0x406456
push str._Rename__r_n
push esi
call fcn.004060f7
test eax, eax
jne 0x4063f4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406429
add eax, 0xa
push 0x40a5b0
push eax
call fcn.004060f7
mov ebp, eax
test ebp, ebp
je 0x406425
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406416
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406410
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40642b
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4261e8
push eax
call fcn.0040614d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406244
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406462
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406485
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062e8
pop ecx
pop ecx
inc dword [0x429af0]
ret 8
Function at 0x406570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040650f
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4065e0
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x4065e0
cmp dword [ebp + 0xc], 1
je 0x4065e4
cmp dword [ebp + 0xc], 2
je 0x4065e4
and word [esi], 0
pop esi
leave
ret 0x14