joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019cb0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1a48
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, 0x101080e9
call fcn.100de193
test esi, esi
je 0x10019dfc
cmp word [esi], 0
je 0x10019dfc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10019d27
xor al, al
jmp 0x10019ea7
push esi
lea ecx, [ebp - 0x40]
call fcn.10004af0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10019de4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov ecx, 0x101063a0
mov edi, eax
call fcn.10035760
mov esi, eax
test esi, esi
je 0x10019de4
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push edi
push str.RegDeleteValue_failed__error___d
push eax
call fcn.10035c70
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x101063a0
push 0x254
push str.RC::RCTrojaneOperator::RemoveStartUpReg
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_virusscan_srcgdoperate_rctrojaneoperator.cpp
push eax
push 2
call fcn.100357b0
cmp esi, 1
jbe 0x10019dd8
lea eax, [ebp - 0x28]
mov ecx, 0x101063a0
push eax
call fcn.10035ae0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004b60
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004b60
cmp dword [0x101063a0], 0
je 0x10019ea5
push 0
mov ecx, 0x101063a0
call fcn.10034e30
mov eax, dword [0x101063a0]
cmp byte [eax + 0x54], 0
je 0x10019ea5
cmp dword [eax + 0x58], 4
jb 0x10019ea5
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
push 0x2b
push str.RCAvOperatorQuarantineStartUp::OperatorImpl
call fcn.10004bc0
push 0x258
push str.RC::RCTrojaneOperator::RemoveStartUpReg
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_virusscan_srcgdoperate_rctrojaneoperator.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101063a0
push eax
push 4
call fcn.100357b0
test bl, bl
je 0x10019e96
lea eax, [ebp - 0x28]
mov ecx, 0x101063a0
push eax
call fcn.10035ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004b60
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret 4
Function at 0x1001b5c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e10c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x101080e9
call fcn.100de193
mov eax, dword [esi + 4]
test eax, eax
je 0x1001b768
cmp dword [0x101063a0], 0
lea edi, [eax + 0x24]
je 0x1001b6a6
push 0
mov ecx, 0x101063a0
call fcn.10034e30
mov eax, dword [0x101063a0]
cmp byte [eax + 0x54], 0
je 0x1001b6a6
cmp dword [eax + 0x58], 4
jb 0x1001b6a6
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push 0x2a
push str.RCAvOperatorDeleteQuarantine::OperatorImpl
call fcn.10004bc0
push 0x3d5
push str.RC::RCTrojaneOperator::DeleteQuarantine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_virusscan_srcgdoperate_rctrojaneoperator.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101063a0
push eax
push 4
call fcn.100357b0
test bl, bl
je 0x1001b697
lea eax, [ebp - 0x28]
mov ecx, 0x101063a0
push eax
call fcn.10035ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004b60
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 1
push dword [ebp + 8]
mov ecx, edi
mov ebx, eax
call fcn.10007aa0
test al, al
je 0x1001b6c7
mov al, 1
jmp 0x1001b76a
call esi
sub eax, ebx
cmp eax, 0x1388
jbe 0x1001b768
push 3
mov ecx, 0x101063a0
call fcn.10035760
mov esi, eax
test esi, esi
je 0x1001b761
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0x1b
push str.rebuild_quarantine_database
call fcn.10004bc0
push 0x3de
push str.RC::RCTrojaneOperator::DeleteQuarantine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_virusscan_srcgdoperate_rctrojaneoperator.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101063a0
push eax
push 3
call fcn.100357b0
cmp esi, 1
jbe 0x1001b752
lea eax, [ebp - 0x28]
mov ecx, 0x101063a0
push eax
call fcn.10035ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004b60
mov ecx, edi
call fcn.10006fa0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret 4
Function at 0x10025c30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
mov ecx, 0x101080e9
call fcn.100de193
mov ebp, dword [esp + 0x18]
xor edi, edi
mov bh, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test ebp, ebp
je 0x10025c98
nop dword [eax + eax]
inc bh
movzx edx, bh
mov bl, byte [edx + esi]
add cl, bl
mov byte [esp + 0x18], cl
movzx ecx, cl
movzx eax, byte [ecx + esi]
mov byte [edx + esi], al
mov byte [ecx + esi], bl
movzx eax, byte [edx + esi]
mov ecx, dword [esp + 0x10]
add al, bl
movzx eax, al
movzx eax, byte [eax + esi]
xor byte [edi + ecx], al
inc edi
mov cl, byte [esp + 0x18]
cmp edi, ebp
jb 0x10025c60
pop edi
mov byte [esi + 0x101], bh
mov byte [esi + 0x100], bh
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10025d50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov ecx, 0x101080e9
mov dword [esp + 4], ebx
call fcn.100de193
cmp dword [esp + 0xc], 0
je 0x10025ddc
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x10025ddb
push esi
push edi
mov edi, dword [ebx]
xor dl, dl
xor cl, cl
xor eax, eax
nop dword [eax]
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x10025d80
mov word [edi + 0x100], 0
xor ebx, ebx
mov eax, dword [esp + 0x18]
movzx esi, dl
mov dl, byte [ebx + edi]
movzx eax, byte [esi + eax]
add al, dl
add cl, al
mov byte [esp + 0x1c], cl
movzx ecx, cl
add ecx, edi
movzx eax, byte [ecx]
mov byte [ebx + edi], al
lea eax, [esi + 1]
mov byte [ecx], dl
inc ebx
mov cl, byte [esp + 0x1c]
xor edx, edx
div ebp
cmp ebx, 0x100
jb 0x10025d96
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov eax, dword [eax]
mov dword [eax + 0x104], ebp
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x10029ba0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x10100be8
push 0x100dd140
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10104008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], 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 dword [ebp - 0x20], esi
mov ecx, 0x101080e9
call fcn.100de193
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10029c0b
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.10029ce0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10029c3d
test bl, bl
jne 0x10029cad
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10029c52
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029c83
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.10004bc0
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 + 0x410]
xor ecx, ebp
call fcn.100dcb60
lea esp, [ebp + 0x414]
pop ebp
ret

Function at 0x1002aa70
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x101080e9
call fcn.100de193
mov eax, dword [esi]
test eax, eax
je 0x1002aa90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 8]
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x1002aaaa
cmp dword [eax + 0x14], 8
jb 0x1002aaac
mov eax, dword [eax]
jmp 0x1002aaac
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1002aace
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002aace
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4
Function at 0x1002aae0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e3ad8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x101080e9
call fcn.100de193
mov eax, dword [esi]
test eax, eax
je 0x1002ab2d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10033c40
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1002ab56
add eax, 8
jmp 0x1002ab58
xor eax, eax
cmp dword [edi + 0x10], 0
je 0x1002ab68
cmp dword [edi + 0x14], 8
jb 0x1002ab6a
mov edi, dword [edi]
jmp 0x1002ab6a
xor edi, edi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1002ab8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002ab8b
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10033d30
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret 4
Function at 0x10030220
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x10104008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
mov ecx, 0x101080e9
call fcn.100de193
push pe_nt_image_headers32
lea eax, [esi + 4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1003036c
cmp dword [esi + 4], 6
push edi
ja 0x10030280
jne 0x10030308
cmp dword [esi + 8], 2
jb 0x10030308
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10030308
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10030308
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10030308
movups xmm0, xmmword [0x100f17fc]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x100f180c]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10030308
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10030308
cmp word [edi + 2], ax
jbe 0x10030308
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10030353
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x10030353
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100dcb60
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.100dcb60
add esp, 0x140
ret

Function at 0x10030550
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10104008]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x101080e9
push edi
mov edi, dword [esp + 0x14]
call fcn.100de193
mov eax, dword [esi]
test eax, eax
je 0x100305bf
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100305bf
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003059a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100305bf
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100dcb60
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100dcb60
add esp, 8
ret 4
Function at 0x10032800
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x10104008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x20]
mov ecx, 0x101080e9
call fcn.100de193
mov esi, dword [esp + 0x24]
xor ebx, ebx
cmp dword [ebp + 0x10], 0xffffffff
je 0x10032882
mov ecx, 0x100000
nop dword [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x10032882
test ecx, ecx
je 0x1003287e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10032840
xor eax, eax
jmp 0x10032887
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10032891
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100dcb60
add esp, 0xc
ret 0xc

Function at 0x10032e80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e11a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov ecx, 0x101080e9
call fcn.100de193
cmp esi, 0xffffffff
jne 0x10032ec2
xor al, al
jmp 0x10032f41
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x10032ed2
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x10032ee4
mov al, 1
jmp 0x10032f41
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10033950
test al, al
je 0x10032f2e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x10032f2e
mov bl, 1
jmp 0x10032f30
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004b60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
Function at 0x10032f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e11a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x101080e9
call fcn.100de193
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10032fa0
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10033004
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10033950
test al, al
je 0x10032ff5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004b60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret

Function at 0x10033030
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4d60
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ecx, 0x101080e9
call fcn.100de193
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x10033072
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1003307c
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x10033136
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x41], al
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.10033950
movzx ecx, byte [ebp - 0x41]
test al, al
mov edx, 1
mov dword [ebp - 0x18], 0
cmovne ecx, edx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10033950
test al, al
jne 0x100330f9
cmp byte [ebp - 0x48], al
je 0x1003313a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1003313a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004b60
mov al, 1
jmp 0x10033157
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004b60
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
Function at 0x10033180
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4da8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov ecx, 0x101080e9
call fcn.100de193
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x100331c3
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100331cd
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0xb
push ecx
push eax
call ebx
test eax, eax
je 0x100331e4
mov al, 1
jmp 0x1003330a
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x59], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.10033950
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
mov dword [ebp - 0x18], 0
cmovne ecx, edx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10033950
test al, al
jne 0x10033260
cmp byte [ebp - 0x60], al
je 0x10033280
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0xb
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
jne 0x100332d4
mov ecx, esi
call fcn.10032f60
cmp eax, 0xffffffff
je 0x100332eb
push esi
lea ecx, [ebp - 0x58]
call fcn.10008640
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.10033700
test al, al
je 0x100332df
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.10033030
test al, al
je 0x100332df
mov edx, esi
mov ecx, edi
call fcn.10033030
lea ecx, [ebp - 0x58]
test al, al
je 0x100332d8
call fcn.10033330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10004b60
mov bl, 1
jmp 0x100332ed
mov edx, esi
call fcn.10033030
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10004b60
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004b60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret