joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4317d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4317e9
shr eax, 4
and eax, 1
jmp 0x4317eb
xor eax, eax
mov dword [esi], eax
push 0
call fcn.00432150
push 0
call fcn.00432150
xor eax, eax
pop esi
ret

Function at 0x432d97
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push esi
push edi
push eax
push ecx
xor edi, edi
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], edi
call fcn.004366e7
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
js 0x432e5c
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x40a728
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.004324b0
test eax, eax
je 0x432e59
test edi, edi
jne 0x432e29
cmp dword [ebp - 4], esi
jbe 0x432e22
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 8]
call fcn.00433c1b
mov edi, dword [ebp - 8]
test edi, edi
jne 0x432dcb
mov esi, 0x8007000e
jmp 0x432e5c
mov esi, 0x8000ffff
jmp 0x432e5c
cmp dword [ebp - 0x14], 2
je 0x432e36
mov esi, 0x8007000d
jmp 0x432e5c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0041aa01
mov esi, eax
test esi, esi
js 0x432e5c
cmp dword [ebp - 0x10], 0
je 0x432e62
and dword [ebp - 8], 0
jmp 0x432e62
mov esi, dword [ebp - 0x10]
push esi
call fcn.004321e3
push esi
call fcn.00432150
lea ecx, [ebp - 8]
call fcn.0042e8b9
cmp dword [ebp - 0xc], 0
je 0x432e7f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x4331f1
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x48ec38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x12c], esi
test edi, edi
jne 0x433223
mov esi, 0x80070057
push esi
call fcn.004321e3
jmp 0x433287
push 0x118
lea eax, [ebp - 0x124]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
push eax
call fcn.004323eb
test eax, eax
jne 0x433268
mov esi, dword [ebp - 0x12c]
jmp 0x43321b
cmp dword [ebp - 0x124], 6
ja 0x43327c
jne 0x43327f
cmp dword [ebp - 0x120], 2
jb 0x43327f
xor esi, esi
inc esi
mov dword [edi], esi
mov esi, dword [ebp - 0x12c]
push esi
call fcn.00432150
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0047d650
leave
ret
Function at 0x433a35
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 2
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.004364d8
mov esi, eax
test esi, esi
js 0x433a8c
push ebx
call fcn.00432150
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call fcn.004324b0
mov esi, dword [ebp - 8]
test eax, eax
jne 0x433a92
push esi
call fcn.004321e3
push esi
call fcn.00432150
lea ecx, [ebp - 0xc]
call fcn.0042e8b9
cmp dword [ebp - 4], ebx
je 0x433aae
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x433bb1
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 2
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004364d8
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
js 0x433bf3
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
call fcn.004324b0
mov esi, dword [ebp - 8]
test eax, eax
jne 0x433bf9
push esi
call fcn.004321e3
push esi
call fcn.00432150
cmp dword [ebp - 4], 0
je 0x433c0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
Function at 0x433d0b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x48ec38]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x144], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
test ecx, ecx
jne 0x433d3f
mov eax, 0x80070057
mov edi, eax
push eax
jmp 0x433e19
test ebx, ebx
je 0x433d32
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x144]
call fcn.0041a61a
mov esi, dword [ebp - 0x144]
test esi, esi
je 0x433e0a
cmp esi, 0xffffffff
je 0x433e0a
push 0x40
lea eax, [ebp - 0x48]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x148]
push edi
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x433e0a
mov eax, 0x5a4d
cmp ax, word [ebp - 0x48]
je 0x433db7
mov edi, 0x8007000d
jmp 0x433e18
mov eax, dword [ebp - 0xc]
push edi
push edi
cdq
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x433e0a
push 0xf8
lea eax, [ebp - 0x140]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x148]
push edi
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x433e0a
mov ax, word [ebp - 0x13c]
mov word [ebx], ax
jmp 0x433e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov edi, eax
push edi
call fcn.004321e3
push edi
call fcn.00432150
lea ecx, [ebp - 0x144]
call fcn.0043239d
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d650
leave
ret
Function at 0x433e46
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x48ec38]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x264], 0xffffffff
push ebx
push esi
mov dword [ebp - 0x26c], eax
xor eax, eax
push edi
mov edi, edx
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x27c], edi
mov esi, eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x268], eax
test edi, edi
jne 0x433eae
mov eax, 0x80070057
mov ebx, eax
push eax
call fcn.004321e3
jmp 0x43406d
mov ecx, edi
call fcn.0043452f
mov ebx, eax
test ebx, ebx
jns 0x433ebe
push ebx
jmp 0x433ea4
cmp dword [ebp - 0x26c], esi
je 0x433e9c
lea eax, [ebp - 0x268]
push eax
push 0
push 0x40a8cc
push edi
call fcn.004314b7
mov ebx, eax
test ebx, ebx
js 0x433ebb
push 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [ebp - 0x264]
call fcn.0041a652
mov edi, dword [ebp - 0x264]
test edi, edi
je 0x43405b
cmp edi, 0xffffffff
je 0x43405b
mov ecx, 0x407390
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433f5d
test dx, dx
je 0x433f59
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433f5d
add eax, 4
add ecx, 4
test dx, dx
jne 0x433f37
xor eax, eax
jmp 0x433f62
sbb eax, eax
or eax, 1
test eax, eax
je 0x434003
mov ecx, 0x406f00
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433f9b
test dx, dx
je 0x433f97
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433f9b
add eax, 4
add ecx, 4
test dx, dx
jne 0x433f75
xor eax, eax
jmp 0x433fa0
sbb eax, eax
or eax, 1
test eax, eax
je 0x434003
test byte [ebp - 0x25c], 0x10
jne 0x434003
test esi, esi
je 0x433fbe
push esi
call fcn.0043220c
and dword [ebp - 0x260], 0
lea eax, [ebp - 0x260]
push eax
push 0
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x27c]
call fcn.004314b7
mov ebx, eax
test ebx, ebx
js 0x43404d
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x274]
lea ecx, [ebp - 0x278]
call fcn.00434721
mov ebx, eax
test ebx, ebx
js 0x43404d
mov esi, dword [ebp - 0x260]
push 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x433f2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x43405b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov ebx, eax
jmp 0x433ebb
push ebx
call fcn.004321e3
mov esi, dword [ebp - 0x260]
jmp 0x43406d
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x278]
push eax
call fcn.00431374
push ebx
call fcn.00432150
lea ecx, [ebp - 0x264]
call fcn.0043237b
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x43408e
push eax
call fcn.0043220c
test esi, esi
je 0x434098
push esi
call fcn.0043220c
push 0
lea ecx, [ebp - 0x278]
call fcn.004347e7
lea ecx, [ebp - 0x270]
call fcn.0042e8b9
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d650
leave
ret 4
Function at 0x43452f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
test ecx, ecx
jne 0x434543
mov esi, 0x80070057
jmp 0x43457e
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43456a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov esi, eax
push esi
call fcn.004321e3
mov ebx, dword [ebp - 4]
push esi
call fcn.00432150
test esi, esi
js 0x43457e
test bl, 0x10
jne 0x434584
mov esi, 0x8007007b
push esi
call fcn.004321e3
push esi
call fcn.00432150
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x434596
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 2
mov edx, 0x406234
mov dword [ebp - 4], ebx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call fcn.004364d8
mov esi, eax
test esi, esi
js 0x4345f3
push ebx
call fcn.00432150
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push 4
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call fcn.004324b0
mov esi, dword [ebp - 8]
test eax, eax
jne 0x4345f9
push esi
call fcn.004321e3
push esi
call fcn.00432150
lea ecx, [ebp - 0xc]
call fcn.0042e8b9
cmp dword [ebp - 4], ebx
je 0x434615
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x434902
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x10], 0
xor eax, eax
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
lea edi, [ebp - 0x24]
xor ebx, ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test edx, edx
jne 0x434937
mov esi, 0x80070057
push esi
call fcn.004321e3
jmp 0x4349f4
push edx
lea eax, [ebp - 8]
push 0x408e60
push eax
call fcn.0041a772
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x43495d
push esi
call fcn.004321e3
mov ebx, dword [ebp - 8]
jmp 0x4349f4
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x24]
mov ebx, dword [ebp - 8]
push edx
push eax
mov ecx, dword [eax + 0x2c]
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
shr ecx, 8
and ecx, 1
push ecx
push eax
push eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x434997
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov esi, eax
jmp 0x43492c
push dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
call fcn.004323bf
push dword [ebp - 0x20]
lea ecx, [ebp - 0xc]
call fcn.004323bf
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4349d7
cmp eax, 0x102
je 0x4349cd
mov esi, 0x80004005
jmp 0x43492c
mov esi, 0x800705b4
jmp 0x43492c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x434987
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4349f4
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
push esi
call fcn.00432150
test ebx, ebx
je 0x434a04
push ebx
call fcn.0043220c
cmp dword [ebp - 0xc], 0
je 0x434a13
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x434a22
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x43543a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x48ec38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xac], eax
push 0x90
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa8], edx
push edi
push eax
mov dword [ebp - 0xa4], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4354b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov esi, eax
push esi
call fcn.004321e3
mov ebx, dword [ebp - 0xac]
jmp 0x4354da
cmp dword [ebp - 0x90], 2
jne 0x4354d8
cmp dword [ebp - 0x9c], 5
ja 0x4354d3
jne 0x4354d8
cmp dword [ebp - 0x98], esi
jbe 0x4354d8
xor ebx, ebx
inc ebx
jmp 0x4354da
xor ebx, ebx
push esi
call fcn.00432150
test esi, esi
jns 0x4354ef
push esi
call fcn.004321e3
jmp 0x43557e
xor esi, esi
mov eax, ebx
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 0xa8]
shl eax, 3
push eax
push esi
mov dword [ebp - 0xb0], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jg 0x435524
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov esi, eax
jmp 0x4354e4
lea eax, [ebp - 0xa4]
push eax
push ebx
push esi
call fcn.0041a6d1
mov esi, eax
test esi, esi
jns 0x435546
push esi
call fcn.004321e3
mov edi, dword [ebp - 0xa4]
jmp 0x43557e
mov edi, dword [ebp - 0xa4]
push ebx
push edi
push 0xffffffffffffffff
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp ebx, eax
je 0x435572
mov esi, 0x8000ffff
jmp 0x4354e4
mov ecx, dword [ebp - 0xac]
mov eax, edi
xor edi, edi
mov dword [ecx], eax
push esi
call fcn.00432150
test edi, edi
je 0x43558e
push edi
call fcn.0043220c
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d650
leave
ret 4
Function at 0x4360e2
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00436db8

Function at 0x43778c
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov eax, ecx
and dword [ebp - 4], esi
xor ebx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
test eax, eax
je 0x437874
xor ecx, ecx
cmp cx, word [eax]
je 0x437874
push edi
lea edx, [ebp - 4]
mov ecx, eax
call fcn.0043727c
mov edi, eax
test edi, edi
je 0x437860
mov esi, dword [ebp - 4]
test esi, esi
je 0x4377d9
add esi, 2
jmp 0x4377db
mov esi, edi
push 0x5c
pop ebx
push ebx
push esi
call sub.msvcrt.dll_wcschr
pop ecx
mov esi, eax
pop ecx
mov ecx, edi
test esi, esi
je 0x43780d
xor eax, eax
mov word [esi], ax
call fcn.00438e07
test eax, eax
jne 0x437805
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], bx
add esi, 2
jmp 0x4377de
call fcn.00438e07
xor esi, esi
inc esi
push 0
pop ebx
cmp eax, esi
je 0x43784e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
je 0x43784e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push dword [ebp - 8]
push 0x40d128
push 0x3000000
push 0x491254
call fcn.0043720a
mov esi, dword [ebp - 0xc]
add esp, 0x14
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x437868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
jmp 0x43787e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
test ecx, ecx
je 0x4380e7
test ebx, ebx
je 0x4380e7
xor edx, edx
call fcn.0043727c
mov edi, eax
test edi, edi
je 0x4380ab
xor edx, edx
mov ecx, ebx
call fcn.0043727c
mov esi, eax
test esi, esi
je 0x4380ab
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43808b
xor edx, edx
mov ecx, esi
call fcn.0043879a
push dword [ebp + 8]
mov edx, esi
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.004380fe
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4380b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x4380db
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x4380db
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
jmp 0x4380f1
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4380fe
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0xc], 0
mov eax, ecx
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
push esi
push edi
mov edi, edx
test ebx, 0xffffffe0
je 0x43812e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x43829f
mov esi, ebx
and esi, 1
test ebx, 8
je 0x438141
or esi, 0x1000
xor edx, edx
call fcn.0043727c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x43829c
xor edx, edx
mov ecx, edi
call fcn.0043727c
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x438273
xor eax, eax
and dword [ebp - 4], 0
push esi
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 8]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4381f5
test ebx, 2
je 0x438273
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0x14], ecx
push edx
mov edx, ecx
mov dword [ebp - 8], eax
mov ecx, eax
call fcn.004386c3
test eax, eax
je 0x438273
push dword [ebp - 4]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0x40d1a8
push 0x4000000
push 0x491254
call fcn.0043720a
add esp, 0x1c
cmp dword [ebp - 4], 0
jbe 0x4381ed
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
jmp 0x438169
test ebx, 4
je 0x438273
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x438273
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x1f
pop ebx
test esi, esi
jne 0x438221
mov esi, ebx
push esi
push edi
push 0x40d240
push 0x2000000
push 0x491254
call fcn.0043720a
add esp, 0x14
xor edx, edx
mov ecx, edi
call fcn.0043879a
test eax, eax
jne 0x43826c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x438253
mov ebx, eax
push ebx
push edi
push 0x40d2e0
push 0x2000000
push 0x491254
call fcn.0043720a
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43829c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x438cec
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
test ebx, ebx
je 0x438dc7
xor eax, eax
cmp ax, word [ebx]
je 0x438dc7
xor edx, edx
call fcn.0043727c
mov edi, eax
test edi, edi
je 0x438d99
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x438d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push 0x40d9e8
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x14
xor edx, edx
mov ecx, edi
call fcn.0043879a
mov ebx, eax
test ebx, ebx
jne 0x438d84
test esi, esi
jne 0x438d65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x40da70
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x14
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, ebx
jmp 0x438dbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push 0x40daf0
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x14
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x438dd1
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
ret

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

Disassembly:
mov edi, edi
push esi
xor esi, esi
test ecx, ecx
je 0x438e75
xor eax, eax
cmp ax, word [ecx]
je 0x438e75
push ebx
xor edx, edx
call fcn.0043727c
mov ebx, eax
test ebx, ebx
je 0x438e70
push edi
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x438e3b
test al, 0x10
je 0x438e3b
inc esi
jmp 0x438e58
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x438e50
mov edi, 0x10b
jmp 0x438e58
cmp edi, 2
jne 0x438e58
push 3
pop edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
mov eax, esi
pop esi
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
test ecx, ecx
je 0x438ef8
xor eax, eax
cmp ax, word [ecx]
je 0x438ef8
push esi
push edi
xor edx, edx
call fcn.0043727c
mov edi, eax
test edi, edi
je 0x438ee3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x438ec9
and esi, 0x10
sete bl
neg esi
sbb esi, esi
and esi, 2
jmp 0x438ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x438eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebx
pop esi
jmp 0x438f02
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
pop ebp
ret 4