joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40532a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x459178]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xc35
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x405391
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00436b80
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x405391
lea eax, [ebp - 0x804]
push eax
lea ecx, [esi + 0x10]
call fcn.004016c8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00435a0a
mov esp, ebp
pop ebp
ret 4

Function at 0x4053a3
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
push str.advapi32.dll
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov byte [edi + 0x18], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x1c], eax
test eax, eax
je 0x405442
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCreateKeyExW
push eax
call esi
push str.RegQueryValueW
push dword [edi + 0x1c]
mov dword [edi], eax
call esi
push str.RegSetValueW
push dword [edi + 0x1c]
mov dword [edi + 4], eax
call esi
push str.RegQueryValueExW
push dword [edi + 0x1c]
mov dword [edi + 8], eax
call esi
push str.RegSetValueExW
push dword [edi + 0x1c]
mov dword [edi + 0xc], eax
call esi
push str.RegCloseKey
push dword [edi + 0x1c]
mov dword [edi + 0x10], eax
call esi
mov dword [edi + 0x14], eax
pop esi
cmp dword [edi], ebx
je 0x405442
cmp dword [edi + 4], ebx
je 0x405442
cmp dword [edi + 8], ebx
je 0x405442
cmp dword [edi + 0xc], ebx
je 0x405442
cmp dword [edi + 0x10], ebx
je 0x405442
test eax, eax
je 0x405442
mov byte [edi + 0x18], 1
mov eax, edi
pop edi
pop ebx
ret

Function at 0x406136
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push edi
push 0x44
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00436b80
push 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], 0x44
push edi
push eax
call fcn.00436b80
mov ecx, dword [ebp + 0xc]
add esp, 0x18
mov dword [ebp - 0x2c], 1
cmp dword [ecx + 0x14], 8
push 5
pop eax
mov word [ebp - 0x28], ax
jb 0x40617a
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x406185
mov eax, dword [eax]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x58]
push edx
push ecx
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4061b1
cmp dword [ebp - 0x10], edi
je 0x4061ad
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4061b3
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x406fb3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x459178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x20], 0
push ebx
push esi
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0xc]
jb 0x406fd8
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
jne 0x406fed
xor al, al
jmp 0x407031
xor esi, esi
cmp dword [ebp - 0x20], esi
jle 0x407022
push dword [ebx + esi*4]
lea ecx, [ebp - 0x1c]
call fcn.004014ad
cmp dword [ebp - 0xc], 0
je 0x407010
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00404a10
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004017f1
inc esi
cmp esi, dword [ebp - 0x20]
jl 0x406ff4
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
cmp eax, dword [edi + 4]
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435a0a
mov esp, ebp
pop ebp
ret 8
Function at 0x408d9d
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x459178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [eax + 0x14], 8
jb 0x408dbe
mov eax, dword [eax]
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x408de5
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00435a0a
mov esp, ebp
pop ebp
ret 4
Function at 0x409867
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x459178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x260]
mov esi, ecx
push 0x27f4
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00436b80
add esp, 0xc
push 0x3ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov edi, eax
test edi, edi
je 0x40991d
push edi
call ebx
test eax, eax
je 0x40991d
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40991d
xor eax, eax
lea ecx, [esi + 0x240]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x218]
push eax
call fcn.004016c8
jmp 0x40993a
push edi
call ebx
test eax, eax
je 0x40993a
lea eax, [esi + 0x240]
cmp dword [eax + 0x14], 8
jb 0x409932
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esi + 0x240]
mov edx, edi
lea ecx, [ebp - 0x248]
call fcn.0040331e
push eax
mov ecx, edi
call fcn.00401f36
xor ebx, ebx
lea ecx, [ebp - 0x248]
push ebx
push 1
call fcn.004017f1
mov edx, str.__r_n
mov ecx, edi
call fcn.0040c720
cmp byte [esi + 0x80], bl
je 0x409a9c
cmp dword [esi + 0x78], ebx
je 0x409a9c
lea ecx, [esi + 0x68]
mov edx, edi
call fcn.0040c4f0
test al, al
jne 0x409a9c
lea ecx, [ebp - 0x280]
call fcn.004053a3
lea eax, [esi + 0x2c4]
push eax
lea ecx, [ebp - 0x248]
call fcn.00401f0e
lea ecx, [ebp - 0x248]
call fcn.0040c810
push 0x25
push 0x3a
pop edx
lea ecx, [ebp - 0x248]
call fcn.0040c660
add esp, 4
push 0x25
push 0x5c
pop edx
call fcn.0040c660
push 7
pop esi
xor eax, eax
mov dword [ebp - 0x21c], esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
mov dword [esp], 0x44cd70
call fcn.004016c8
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.00405457
push 0
push 1
lea ecx, [ebp - 0x230]
mov bl, al
call fcn.004017f1
test bl, bl
je 0x409a81
xor eax, eax
mov dword [ebp - 0x21c], esi
xor ebx, ebx
mov word [ebp - 0x230], ax
push 0x44cd70
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
call fcn.004016c8
push edi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.0040559e
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.004017f1
jmp 0x409a83
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.004017f1
lea ecx, [ebp - 0x280]
call fcn.00405447
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.004017f1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435a0a
mov esp, ebp
pop ebp
ret
Function at 0x40e710
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x444c88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x459178]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [edx]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x1c], ecx
add eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x1c]
adc ecx, 0
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], ecx
mov word [esp + 8], ax
lea ecx, [esp + 8]
lea eax, [edx + 0x2c]
mov dword [esp + 0x1c], 7
push eax
mov dword [esp + 0x1c], 0
call fcn.004016c8
mov dword [esp + 0x28], 0
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0040d420
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 8
jb 0x40e7df
push dword [esp + 8]
call fcn.004368cb
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8

Function at 0x40f890
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x456420
push 0x438960
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x459178]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00401f5b
mov edx, esi
mov ecx, edi
call fcn.0040f9c0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x40f925
test bl, bl
jne 0x40f998
cmp edi, 0x1a
jne 0x40f998
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x40f93f
mov eax, dword [esi]
jmp 0x40f941
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x430], ax
push 0x40e
push eax
lea eax, [ebp - 0x42e]
push eax
call fcn.00436b80
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.004016c8
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00435a0a
mov esp, ebp
pop ebp
ret
Function at 0x40ffc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
mov eax, dword [0x459178]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x230]
push edi
cmp byte [ebx], 0
mov edi, dword [esp + 0x238]
je 0x410003
lea ecx, [ebx + 4]
call fcn.004138f0
test al, al
sete al
mov byte [ebx], al
xor eax, eax
push 0x20a
push eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push eax
call fcn.00436b80
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x410025
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x41002d
mov esi, dword [esi]
lea eax, [esp + 0x18]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x410076
xor eax, eax
mov ecx, ebp
mov word [esp + 0x222], ax
lea eax, [esp + 0x18]
push eax
call fcn.004016c8
lea ecx, [ebx + 4]
mov al, 1
mov byte [esp + 0x17], al
cmp ecx, ebp
je 0x410071
push 0xffffffffffffffff
push 0
push ebp
call fcn.00401a6e
mov al, byte [esp + 0x17]
mov byte [ebx], 1
jmp 0x410078
xor al, al
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00435a0a
add esp, 0x220
ret 0xc
Function at 0x411a00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4453db
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x459178]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x459178]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call fcn.00436b2f
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x411a6c
push 0x34
push 0
push esi
call fcn.00436b80
add esp, 0xc
mov ecx, esi
call fcn.00411550
mov esi, eax
jmp 0x411a6e
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push 0x80000000
push eax
lea ecx, [esi + 0x18]
call fcn.00414d30
test al, al
jne 0x411aa0
test esi, esi
je 0x411a9c
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x411ae2
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
lea ecx, [edi + 8]
movlpd qword [esp + 0x10], xmm0
call fcn.00414ec0
test al, al
je 0x411a90
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
push ecx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
lea ecx, [esi + 8]
mov eax, dword [esi + 8]
push dword [esp + 0x18]
call dword [eax + 0x14]
test eax, eax
jne 0x411a94
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00435a0a
mov esp, ebp
pop ebp
ret

Function at 0x411d80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4454b9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x459178]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call fcn.00436b2f
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x44c794
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
call fcn.004016c8
mov byte [esp + 0x38], 3
sub esp, 8
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00415390
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x411e63
push dword [esp + 0x18]
call fcn.004368cb
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x412e80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x459178]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
mov esi, ecx
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.00436b80
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x412ef7
xor eax, eax
mov ecx, esi
mov word [esp + 0x20e], ax
lea eax, [esp + 4]
push eax
call fcn.004016c8
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00435a0a
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.00435a0a
add esp, 0x210
ret

Function at 0x413060
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x445008
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x459178]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x459178]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
cmp dword [esi + 0x14], 8
jb 0x4130a5
mov eax, dword [esi]
jmp 0x4130a7
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x4130bc
mov al, 1
jmp 0x413146
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.004142f0
test al, al
je 0x413110
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x413110
mov bl, 1
jmp 0x413112
xor bl, bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x41312d
push dword [esp + 0x14]
call fcn.004368cb
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov al, bl
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00435a0a
add esp, 0x2c
ret
Function at 0x413170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x445858
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x459178]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x459178]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4131ac
mov eax, dword [esi]
jmp 0x4131ae
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413243
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.004142f0
test al, al
je 0x413211
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x41322c
push dword [esp + 0xc]
call fcn.004368cb
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00435a0a
add esp, 0x28
ret
Function at 0x413270
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x445890
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x459178]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
push edi
mov eax, dword [0x459178]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x4132ae
mov eax, dword [edi]
jmp 0x4132b0
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x4132b8
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4132cb
mov al, 1
jmp 0x413439
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov dword [esp + 0x50], eax
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.004142f0
movzx ecx, byte [esp + 0xf]
test al, al
mov edx, 1
mov dword [esp + 0x24], 0
cmovne ecx, edx
mov dword [esp + 0x28], 0
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov byte [esp + 0x50], dl
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.004142f0
test al, al
jne 0x413359
cmp byte [esp + 0x10], al
je 0x4133d6
cmp dword [esp + 0x28], 8
lea ecx, [esp + 0x14]
lea eax, [esp + 0x2c]
cmovae ecx, dword [esp + 0x14]
cmp dword [esp + 0x40], 8
push ecx
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4133d6
mov byte [esp + 0x50], 0
cmp dword [esp + 0x28], 8
jb 0x413399
push dword [esp + 0x14]
call fcn.004368cb
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x4133cb
push dword [esp + 0x2c]
call fcn.004368cb
add esp, 4
xor eax, eax
mov word [esp + 0x2c], ax
mov al, 1
jmp 0x413429
mov byte [esp + 0x50], 0
cmp dword [esp + 0x28], 8
jb 0x4133ee
push dword [esp + 0x14]
call fcn.004368cb
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x413420
push dword [esp + 0x2c]
call fcn.004368cb
add esp, 4
xor eax, eax
mov word [esp + 0x2c], ax
xor al, al
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 7
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00435a0a
add esp, 0x48
ret
Function at 0x413460
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4458d8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x459178]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
push edi
mov eax, dword [0x459178]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x41349f
mov eax, dword [esi]
jmp 0x4134a1
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x4134a9
mov ecx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0xb
push eax
push ecx
call ebx
test eax, eax
je 0x4134c0
mov al, 1
jmp 0x4136c4
xor eax, eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov dword [esp + 0x70], eax
lea edx, [esp + 0x4c]
mov ecx, edi
call fcn.004142f0
movzx ecx, byte [esp + 0x17]
test al, al
mov edx, 1
mov dword [esp + 0x44], 0
cmovne ecx, edx
mov dword [esp + 0x48], 0
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov byte [esp + 0x70], dl
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.004142f0
test al, al
jne 0x41354e
cmp byte [esp + 0x18], al
je 0x41357b
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
push 0xb
cmovae ecx, dword [esp + 0x38]
lea eax, [esp + 0x50]
cmp dword [esp + 0x64], 8
push ecx
cmovae eax, dword [esp + 0x54]
push eax
call ebx
test eax, eax
je 0x41357b
mov bl, 1
jmp 0x413661
mov ecx, esi
call fcn.00413170
cmp eax, 0xffffffff
je 0x41365f
xor eax, eax
mov dword [esp + 0x2c], 0
push 0xffffffffffffffff
push eax
mov dword [esp + 0x38], 0
lea ecx, [esp + 0x24]
push esi
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.00401a6e
mov byte [esp + 0x70], 2
lea ecx, [esp + 0x1c]
call fcn.00413f20
test al, al
je 0x413630
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.00413270
test al, al
je 0x413630
mov edx, esi
mov ecx, edi
call fcn.00413270
lea ecx, [esp + 0x1c]
test al, al
je 0x413629
call fcn.004138f0
mov byte [esp + 0x70], 1
cmp dword [esp + 0x30], 8
jb 0x41360e
push dword [esp + 0x1c]
call fcn.004368cb
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov bl, 1
mov word [esp + 0x1c], ax
jmp 0x413661
mov edx, esi
call fcn.00413270
mov byte [esp + 0x70], 1
cmp dword [esp + 0x30], 8
jb 0x413648
push dword [esp + 0x1c]
call fcn.004368cb
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
xor bl, bl
mov byte [esp + 0x70], 0
cmp dword [esp + 0x48], 8
jb 0x413679
push dword [esp + 0x34]
call fcn.004368cb
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov dword [esp + 0x70], 0xffffffff
cmp dword [esp + 0x60], 8
jb 0x4136ab
push dword [esp + 0x4c]
call fcn.004368cb
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov word [esp + 0x4c], ax
mov al, bl
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00435a0a
add esp, 0x64
ret