joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402422
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push str.REG_SZ
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
push dword [ebp + 0x14]
call sub.KERNEL32.DLL_lstrlenA
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
leave
ret 0x10

Function at 0x402472
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0x200
push 0x40755e
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x40755e
call sub.shlwapi.dll_PathAddBackslashA
push str.explorer.exe
push 0x40755e
call sub.KERNEL32.DLL_lstrcatA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push 0x40755e
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
push 0x407556
push 0x40754e
push 0x407546
push dword [ebp - 4]
call sub.KERNEL32.DLL_GetFileTime
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
leave
ret

Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x68ee27f3
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x3aef3cda
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4038b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x459178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
xor edi, edi
mov dword [ebp - 0x20], 0x25
mov esi, edx
lea eax, [ebp - 0x20]
push edi
mov ebx, ecx
mov ecx, esi
push eax
call fcn.00401d53
push esi
cmp eax, 0xffffffff
jne 0x4038f0
mov ecx, ebx
call fcn.004025a9
jmp 0x403996
lea ecx, [ebp - 0x1c]
call fcn.004025a9
cmp dword [esi + 0x14], 8
jb 0x403902
mov eax, dword [esi]
jmp 0x403904
mov eax, esi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40391f
push esi
mov ecx, ebx
call fcn.004025a9
push edi
jmp 0x40398c
xor ecx, ecx
add eax, 2
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436359
cmp dword [esi + 0x14], 8
mov edi, eax
pop ecx
jb 0x403941
mov esi, dword [esi]
mov eax, dword [ebp - 0x20]
inc eax
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor esi, esi
test eax, eax
je 0x403979
cmp eax, dword [ebp - 0x20]
ja 0x403979
xor ecx, ecx
mov word [edi + eax*2], cx
cmp word [edi], si
jne 0x403968
mov eax, esi
jmp 0x40396f
push edi
call fcn.004370ab
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402102
push edi
call fcn.00437204
pop ecx
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00401b55
push esi
push 1
lea ecx, [ebp - 0x1c]
call fcn.00401df6
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436362
mov esp, ebp
pop ebp
ret
Function at 0x4057ba
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 ebx
push edi
mov ebx, ecx
push 0xc35
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x40583d
push esi
push 0x800
xor esi, esi
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.004374e0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40583c
cmp word [ebp - 0x804], si
je 0x40582c
lea eax, [ebp - 0x804]
push eax
call fcn.004370ab
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebx + 0x10]
call fcn.00402102
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00436362
mov esp, ebp
pop ebp
ret 4

Function at 0x40584f
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 0x4058ee
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 0x4058ee
cmp dword [edi + 4], ebx
je 0x4058ee
cmp dword [edi + 8], ebx
je 0x4058ee
cmp dword [edi + 0xc], ebx
je 0x4058ee
cmp dword [edi + 0x10], ebx
je 0x4058ee
test eax, eax
je 0x4058ee
mov byte [edi + 0x18], 1
mov eax, edi
pop edi
pop ebx
ret

Function at 0x406616
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.004374e0
push 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], 0x44
push edi
push eax
call fcn.004374e0
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 0x40665a
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x406665
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 0x406691
cmp dword [ebp - 0x10], edi
je 0x40668d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x406693
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x40742e
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 0x407453
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 0x407468
xor al, al
jmp 0x4074ac
xor esi, esi
cmp dword [ebp - 0x20], esi
jle 0x40749d
push dword [ebx + esi*4]
lea ecx, [ebp - 0x1c]
call fcn.00401b1d
cmp dword [ebp - 0xc], 0
je 0x40748b
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00404f2d
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00401df6
inc esi
cmp esi, dword [ebp - 0x20]
jl 0x40746f
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.00436362
mov esp, ebp
pop ebp
ret 8

Function at 0x409266
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 0x409287
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 0x4092ae
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00436362
mov esp, ebp
pop ebp
ret 4
Function at 0x409d30
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.004039a9
mov ecx, eax
call fcn.00416136
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.004374e0
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 0x409dfd
push edi
call ebx
test eax, eax
je 0x409dfd
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409dfd
xor eax, eax
mov word [ebp - 0x10], ax
cmp word [ebp - 0x218], ax
je 0x409de8
lea eax, [ebp - 0x218]
push eax
call fcn.004370ab
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x240]
call fcn.00402102
jmp 0x409e1a
push edi
call ebx
test eax, eax
je 0x409e1a
lea eax, [esi + 0x240]
cmp dword [eax + 0x14], 8
jb 0x409e12
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 - 0x230]
call fcn.004038b0
push eax
mov ecx, edi
call fcn.004025d1
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401df6
mov edx, str.__DSPT
mov ecx, edi
call fcn.0040cc10
cmp byte [esi + 0x80], 0
je 0x409f4a
cmp dword [esi + 0x78], 0
je 0x409f4a
lea ecx, [esi + 0x68]
mov edx, edi
call fcn.0040c9e0
test al, al
jne 0x409f4a
lea ecx, [ebp - 0x280]
call fcn.0040584f
lea eax, [esi + 0x2c4]
push eax
lea ecx, [ebp - 0x248]
call fcn.004025a9
lea ecx, [ebp - 0x248]
call fcn.0040cce0
push 0x25
push 0x3a
pop edx
lea ecx, [ebp - 0x248]
call fcn.0040cb50
add esp, 4
push 0x25
push 0x5c
pop edx
call fcn.0040cb50
add esp, 4
lea ecx, [ebp - 0x230]
mov esi, 0x44cda0
push esi
call fcn.00401b1d
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.00405903
push 0
push 1
lea ecx, [ebp - 0x230]
mov bl, al
call fcn.00401df6
test bl, bl
je 0x409f30
push esi
lea ecx, [ebp - 0x230]
call fcn.00401b1d
push edi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.00405a73
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401df6
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00401df6
lea ecx, [ebp - 0x280]
call fcn.004058f3
push 0
push 1
lea ecx, [ebp - 0x260]
call fcn.00401df6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436362
mov esp, ebp
pop ebp
ret
Function at 0x4101b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x456538
push 0x439290
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.004025f6
mov edx, esi
mov ecx, edi
call fcn.00410300
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x410245
test bl, bl
jne 0x4102de
cmp edi, 0x1a
jne 0x4102de
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x410267
mov eax, dword [esi]
jmp 0x410269
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.004374e0
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x430], 0
jne 0x4102b1
xor eax, eax
jmp 0x4102c0
lea eax, [ebp - 0x430]
push eax
call fcn.004370ab
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.00402102
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.00436362
mov esp, ebp
pop ebp
ret
Function at 0x412350
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445ddb
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.0043748f
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x4123bc
push 0x34
push 0
push esi
call fcn.004374e0
add esp, 0xc
mov ecx, esi
call fcn.00411ea0
mov esi, eax
jmp 0x4123be
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.00415810
test al, al
jne 0x4123f0
test esi, esi
je 0x4123ec
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x412432
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
lea ecx, [edi + 8]
movlpd qword [esp + 0x10], xmm0
call fcn.004159a0
test al, al
je 0x4123e0
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 0x4123e4
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.00436362
mov esp, ebp
pop ebp
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x445eb9
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.0043748f
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]
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x44c7c4
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
call fcn.00402102
mov byte [esp + 0x38], 3
sub esp, 8
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00415e70
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x4127b4
push dword [esp + 0x18]
call fcn.0043722b
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 0x4140d0
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.004374e0
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x414181
xor eax, eax
mov word [esp + 0x20e], ax
cmp word [esp + 4], ax
jne 0x41414f
push eax
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.00402102
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00436362
add esp, 0x210
ret
lea eax, [esp + 4]
push eax
call fcn.004370ab
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.00402102
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00436362
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.00436362
add esp, 0x210
ret

Function at 0x4142f0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x445a08
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 0x414335
mov eax, dword [esi]
jmp 0x414337
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x41434c
mov al, 1
jmp 0x4143d6
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.00415690
test al, al
je 0x4143a0
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x4143a0
mov bl, 1
jmp 0x4143a2
xor bl, bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x4143bd
push dword [esp + 0x14]
call fcn.0043722b
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.00436362
add esp, 0x2c
ret
Function at 0x414400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x446468
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 0x41443c
mov eax, dword [esi]
jmp 0x41443e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4144d3
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.00415690
test al, al
je 0x4144a1
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 0x4144bc
push dword [esp + 0xc]
call fcn.0043722b
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.00436362
add esp, 0x28
ret
Function at 0x414500
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4464a0
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 0x41453e
mov eax, dword [edi]
jmp 0x414540
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x414548
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41455b
mov al, 1
jmp 0x4146c9
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.00415690
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.00415690
test al, al
jne 0x4145e9
cmp byte [esp + 0x10], al
je 0x414666
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 0x414666
mov byte [esp + 0x50], 0
cmp dword [esp + 0x28], 8
jb 0x414629
push dword [esp + 0x14]
call fcn.0043722b
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 0x41465b
push dword [esp + 0x2c]
call fcn.0043722b
add esp, 4
xor eax, eax
mov word [esp + 0x2c], ax
mov al, 1
jmp 0x4146b9
mov byte [esp + 0x50], 0
cmp dword [esp + 0x28], 8
jb 0x41467e
push dword [esp + 0x14]
call fcn.0043722b
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 0x4146b0
push dword [esp + 0x2c]
call fcn.0043722b
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.00436362
add esp, 0x48
ret