joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038e6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x417160]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
mov dword [ebp - 0x74], eax
call fcn.00403753
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x70], eax
jne 0x40391a
xor eax, eax
jmp 0x403a6a
cmp dword [esi + 0x20], ebx
jne 0x403a53
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x28], 0x52
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x61
mov byte [ebp - 0x25], 0x64
mov byte [ebp - 0x24], 0x50
mov byte [ebp - 0x23], 0x72
mov byte [ebp - 0x22], 0x6f
mov byte [ebp - 0x21], 0x63
mov byte [ebp - 0x20], 0x65
mov byte [ebp - 0x1f], 0x73
mov byte [ebp - 0x1e], 0x73
mov byte [ebp - 0x1d], 0x4d
mov byte [ebp - 0x1c], 0x65
mov byte [ebp - 0x1b], 0x6d
mov byte [ebp - 0x1a], 0x6f
mov byte [ebp - 0x19], 0x72
mov byte [ebp - 0x18], 0x79
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov word [ebp - 0x6c], 0x6b
mov word [ebp - 0x6a], 0x65
mov word [ebp - 0x68], 0x72
mov word [ebp - 0x66], 0x6e
mov word [ebp - 0x64], 0x65
mov word [ebp - 0x62], 0x6c
mov word [ebp - 0x60], 0x33
mov word [ebp - 0x5e], 0x32
mov word [ebp - 0x5c], 0x2e
mov word [ebp - 0x5a], 0x64
mov word [ebp - 0x58], 0x6c
mov word [ebp - 0x56], 0x6c
mov word [ebp - 0x54], bx
mov word [ebp - 0x52], bx
mov word [ebp - 0x50], bx
mov word [ebp - 0x4e], bx
mov word [ebp - 0x4c], bx
mov word [ebp - 0x4a], bx
mov word [ebp - 0x48], bx
mov word [ebp - 0x46], bx
mov word [ebp - 0x44], bx
mov word [ebp - 0x42], bx
mov word [ebp - 0x40], bx
mov word [ebp - 0x3e], bx
mov word [ebp - 0x3c], bx
mov word [ebp - 0x3a], bx
mov word [ebp - 0x38], bx
mov word [ebp - 0x36], bx
mov word [ebp - 0x34], bx
mov word [ebp - 0x32], bx
mov word [ebp - 0x30], bx
mov word [ebp - 0x2e], bx
mov word [ebp - 0x2c], bx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x403913
mov eax, dword [ebp - 0x70]
push ebx
push 4
push dword [ebp - 0x74]
add eax, 8
push eax
push edi
call dword [esi + 0x20]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040654c
leave
ret 8
Function at 0x4058ae
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x417160]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004057ed
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004063c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4058fd
cmp dword [ebp - 0x1c], 5
jb 0x405915
jmp 0x405911
cmp dword [ebp - 0x10], 1
jne 0x405915
cmp dword [ebp - 0x1c], 4
ja 0x405911
jne 0x405915
cmp dword [ebp - 0x18], 0
jbe 0x405915
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4133f0
call fcn.00405683
test eax, eax
jge 0x405936
mov byte [0x41991c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040654c
add ebp, 0x78
leave
ret

Function at 0x40654c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417160]
jne 0x406556
repz ret
jmp fcn.004095d5
Function at 0x4093d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x417420]
je 0x4093eb
inc edi
cmp edi, 0x17
jb 0x4093dc
cmp edi, 0x17
jae 0x40956b
push ebp
push 3
call fcn.0040f28f
cmp eax, 1
pop ecx
je 0x409537
push 3
call fcn.0040f28f
test eax, eax
pop ecx
jne 0x40941f
cmp dword [0x417170], 1
je 0x409537
cmp ebx, 0xfc
je 0x40956a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x418ee8
push ebp
call fcn.00407a74
add esp, 0xc
test eax, eax
je 0x409455
push esi
push esi
push esi
push esi
push esi
call fcn.00407be2
add esp, 0x14
push 0x104
mov esi, 0x418f01
push esi
push 0
mov byte [0x419005], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409499
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00407a74
add esp, 0xc
test eax, eax
je 0x409499
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407be2
add esp, 0x14
push esi
call fcn.004070a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4094de
push esi
call fcn.004070a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4191fc
push 0x413a64
sub ecx, eax
push ecx
push eax
call fcn.0040f1dc
add esp, 0x14
test eax, eax
je 0x4094de
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00407be2
add esp, 0x14
jmp 0x4094e0
xor esi, esi
push 0x413a60
push ebx
push ebp
call fcn.0040f16b
add esp, 0xc
test eax, eax
je 0x409500
push esi
push esi
push esi
push esi
push esi
call fcn.00407be2
add esp, 0x14
push dword [edi*8 + 0x417424]
push ebx
push ebp
call fcn.0040f16b
add esp, 0xc
test eax, eax
je 0x409522
push esi
push esi
push esi
push esi
push esi
call fcn.00407be2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040efae
add esp, 0xc
jmp 0x40956a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40956a
cmp ebp, 0xffffffff
je 0x40956a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x417424]
push dword [esi]
call fcn.004070a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40efae
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040a43d
xor ebx, ebx
cmp dword [0x419800], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40f084
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40f164
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40f164
push eax
call fcn.0040a3cf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419800], eax
call esi
push eax
call fcn.0040a3cf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419804], eax
call esi
push eax
call fcn.0040a3cf
mov dword [0x419808], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040915d
test eax, eax
pop ecx
pop ecx
je 0x40f052
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407be2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40f084
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040a3cf
cmp eax, ebx
pop ecx
mov dword [0x419810], eax
je 0x40f084
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a3cf
pop ecx
mov dword [0x41980c], eax
mov eax, dword [0x41980c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40f109
cmp dword [0x419810], ecx
je 0x40f109
push eax
call fcn.0040a446
push dword [0x419810]
mov esi, eax
call fcn.0040a446
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40f109
cmp edi, ebx
je 0x40f109
call esi
cmp eax, ebx
je 0x40f0d6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f0d6
test byte [ebp - 0x18], 1
jne 0x40f109
lea eax, [ebp - 0x10]
push eax
call fcn.00409194
test eax, eax
pop ecx
je 0x40f0f1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407be2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40f100
or dword [ebp + 0x10], 0x200000
jmp 0x40f144
or dword [ebp + 0x10], 0x40000
jmp 0x40f144
mov eax, dword [0x419804]
cmp eax, dword [ebp - 8]
je 0x40f144
push eax
call fcn.0040a446
cmp eax, ebx
pop ecx
je 0x40f144
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40f144
mov eax, dword [0x419808]
cmp eax, dword [ebp - 8]
je 0x40f144
push eax
call fcn.0040a446
cmp eax, ebx
pop ecx
je 0x40f144
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419800]
call fcn.0040a446
cmp eax, ebx
pop ecx
je 0x40f164
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f166
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40605d
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x44a200], 2
jl 0x406082
movaps xmm0, xmmword [0x4347f0]
movaps xmmword [0x441040], xmm0
movaps xmm0, xmmword [0x4347e0]
movaps xmmword [0x441050], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.0040640a
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x4347b8]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x406090
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x406773
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x40679d
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x441060]
inc edi
sub esi, 1
jne 0x406785
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x40698a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor ebp, ebp
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x4069e0
mov eax, dword [esi]
push ebx
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push dword [esp + 0x5c]
call fcn.00407074
mov edx, ebp
mov ebx, ebp
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor eax, ebx
inc edx
mov ebx, eax
cmp edx, 0x20
jb 0x4069c4
mov dword [esi], eax
pop ebx
cmp dword [edi], 3
jne 0x406a0c
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
push 0x20
push esi
push 0x20
push dword [esp + 0x58]
call fcn.00407074
push 0x20
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00422950
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x24
ret 8
Function at 0x406dcf
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x864
push ebp
mov ebp, dword [esp + 0x880]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebp, 0x18
ja 0x406fad
push ebx
push esi
xor ebx, ebx
lea esi, [eax + 0xf4]
push edi
mov edi, ebx
push dword [esp + 0x87c]
mov ecx, esi
call fcn.00410270
test al, al
je 0x406e2d
lea eax, [esi + 0x10]
cmp dword [eax + 0x30], ebp
jne 0x406e2d
push 0x10
push dword [esp + 0x888]
push eax
call fcn.004212d2
add esp, 0xc
test eax, eax
je 0x406fb7
inc edi
add esi, 0x84
cmp edi, 4
jb 0x406df9
mov esi, 0x800
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x888]
call fcn.00412e70
xor eax, eax
mov ecx, ebp
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x10
push dword [esp + 0x898]
lea eax, [esp + 0x8c]
push eax
call fcn.00426ee0
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0040727f
push esi
lea eax, [esp + 0x78]
push eax
call fcn.00410494
mov edx, dword [esp + 0x10]
push dword [esp + 0x87c]
mov ecx, dword [edx + 0x304]
lea edi, [edx + 0xf4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x84
add edi, eax
lea eax, [ecx + 1]
mov dword [edx + 0x304], eax
mov ecx, edi
mov dword [edi + 0x40], ebp
call fcn.00406960
push 0x10
push dword [esp + 0x888]
lea eax, [edi + 0x10]
push eax
call fcn.00422950
push 0x20
pop ebp
push ebp
lea eax, [esp + 0x24]
push eax
lea esi, [edi + 0x20]
push esi
call fcn.00422950
push ebp
lea eax, [esp + 0x50]
push eax
lea eax, [edi + 0x44]
push eax
call fcn.00422950
push ebp
lea eax, [esp + 0x7c]
push eax
lea eax, [edi + 0x64]
push eax
call fcn.00422950
add esp, 0x30
push ebx
push 1
push ebp
push esi
call fcn.004103a5
cmp dword [esp + 0x890], ebx
je 0x406f3b
push ebp
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x898]
call fcn.00422950
add esp, 0xc
mov esi, dword [esp + 0x894]
test esi, esi
je 0x406f6e
push 8
push ebx
push esi
call fcn.00420d40
add esp, 0xc
mov al, byte [esp + ebx + 0x34]
mov ecx, ebx
and ecx, 7
xor byte [ecx + esi], al
inc ebx
cmp ebx, ebp
jb 0x406f52
push ebp
lea eax, [esp + 0x38]
push eax
call fcn.00410494
cmp dword [esp + 0x888], 0
pop edi
pop esi
pop ebx
je 0x406fa2
push dword [esp + 0x87c]
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0x100
push eax
push dword [esp + 0x878]
add ecx, 0x30c
call fcn.0040f8c0
push ebp
lea eax, [esp + 0xc]
push eax
call fcn.00410494
pop ebp
add esp, 0x864
ret 0x20
push 0x20
pop ebp
push ebp
lea eax, [esi + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00422950
add esp, 0xc
lea eax, [esp + 0x14]
push ebx
push ebx
push ebp
push eax
call fcn.004103a5
push ebp
lea eax, [esi + 0x44]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00422950
push ebp
lea eax, [esi + 0x64]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00422950
add esp, 0x18
jmp 0x406f1d
Function at 0x407074
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1bc
push ebx
mov ebx, dword [esp + 0x1c8]
push ebp
push esi
push edi
push 0x40
pop edi
cmp ebx, edi
jbe 0x4070c9
lea eax, [esp + 0x164]
push eax
call fcn.00411065
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.004110ab
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.00410f82
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x4070d0
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4070fb
mov ecx, dword [esp + 0x1e8]
cmp byte [ecx], 0
je 0x4070fb
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x407159
xor edx, edx
test ebx, ebx
je 0x40711b
mov esi, eax
lea eax, [esp + 0x14]
sub esi, eax
lea ecx, [esp + 0x14]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x407109
cmp ebx, edi
jae 0x407135
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.00420d40
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.00411065
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.004110ab
test ebp, ebp
je 0x407176
mov eax, dword [esp + 0x1e8]
cmp byte [eax], 0
jne 0x407176
push 0x1a
pop ecx
lea esi, [esp + 0x94]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push dword [esp + 0x1dc]
lea eax, [esp + 0x98]
push dword [esp + 0x1dc]
push eax
call fcn.004110ab
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00410f82
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x4071ca
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x4071ca
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x407234
test ebx, ebx
je 0x4071ec
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
sub edx, eax
xor esi, esi
lea ecx, [esp + 0x14]
add ecx, esi
mov al, byte [edx + ecx]
xor al, 0x5c
inc esi
mov byte [ecx], al
cmp esi, ebx
jb 0x4071da
cmp ebx, 0x40
jae 0x407208
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.00420d40
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.00411065
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.004110ab
test ebp, ebp
je 0x40724a
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
jne 0x40724a
push 0x1a
pop ecx
lea esi, [esp + 0xfc]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.004110ab
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.00410f82
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24
Function at 0x40727f
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x190
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x407299
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x48]
push eax
call fcn.00422950
add esp, 0xc
mov dword [ebp + esi - 0x48], 0x1000000
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00407074
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00422950
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov byte [ebp + 0x56], 0
mov dword [ebp + 0x48], eax
xor esi, esi
mov byte [ebp + 0x57], 0
push 0x10
pop eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x44], eax
mov edi, dword [ebp + esi + 0x48]
test edi, edi
je 0x407365
lea eax, [ebp + 0x57]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp + 0x56]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00407074
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00422950
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x1c]
xor byte [ebp + ecx - 4], al
inc ecx
cmp ecx, ebx
jb 0x407353
sub edi, 1
jne 0x407316
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + esi + 0x3c]
call fcn.00422950
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x40730e
push 0x44
lea eax, [ebp - 0x48]
push eax
call fcn.00410494
push ebx
lea eax, [ebp - 4]
push eax
call fcn.00410494
push ebx
lea eax, [ebp + 0x1c]
push eax
call fcn.00410494
push ebx
lea eax, [ebp - 0x68]
push eax
call fcn.00410494
pop edi
pop esi
pop ebx
add ebp, 0x58
leave
ret 0x20
Function at 0x40a2fb
Capabilities:
Move file

Disassembly:
mov eax, 0x433666
call fcn.0041fa8c
mov eax, 0x5044
call fcn.0041fb60
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4050]
push edi
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40a4bc
cmp eax, ebx
jae 0x40a4bc
push ebx
lea eax, [ebp - 0x5050]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40a4bc
cmp eax, ebx
jae 0x40a4bc
lea eax, [ebp - 0x4050]
push eax
call fcn.0040d3ba
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x5050]
push eax
call fcn.0040d3ba
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x40a4bc
push edi
push dword [ebp - 0x10]
call fcn.00413016
test eax, eax
je 0x40a4bc
push edi
push esi
call fcn.0040d3ba
push eax
call fcn.00413016
test eax, eax
jne 0x40a4bc
mov word [ebp - 0x1010], ax
mov edi, ebx
test ax, ax
jne 0x40a41c
push 0x800
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.00411638
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.0040d3ba
push eax
call fcn.00404a00
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040b1d1
test al, al
je 0x40a401
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x40a408
mov ax, word [ebp - 0x1010]
add edi, 0x7b
cmp edi, 0x2710
jl 0x40a3af
test ax, ax
je 0x40a4bc
mov edi, 0x800
lea eax, [ebp - 0x3050]
push edi
push esi
push eax
call fcn.00411638
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3050]
push eax
call fcn.0040d430
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3050]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40a4bc
lea ecx, [ebp - 0x2050]
call fcn.0040a4cf
push esi
mov dword [ebp - 4], ebx
call fcn.0040b1d1
test al, al
jne 0x40a47f
push 0x12
push esi
lea ecx, [ebp - 0x2050]
call fcn.0040a5de
mov bl, al
lea eax, [ebp - 0x3050]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x40a4ad
lea ecx, [ebp - 0x2050]
call fcn.0040a590
lea ecx, [ebp - 0x2050]
call fcn.0040a6be
lea ecx, [ebp - 0x2050]
call fcn.0040a513
mov al, 1
jmp 0x40a4be
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40a850
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1050
call fcn.0041fb60
push ebx
mov ebx, dword [esp + 0x105c]
push ebp
push edi
mov edi, ecx
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x40a87c
test bl, 4
jne 0x40a87c
xor al, al
jmp 0x40a87e
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x40a897
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x40a8a6
or ebx, 2
lea ecx, [esp + 0x18]
call fcn.004079c5
cmp byte [edi + 0x24], 0
je 0x40a8bb
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push dword [esp + 0x107c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40a92b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x106c]
call fcn.0040cc23
test al, al
je 0x40a938
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40a933
mov dword [esp + 0x10], eax
jmp 0x40a933
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x40a949
cmp dword [esp + 0x10], 2
jne 0x40a949
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x40a96f
cmp ebp, 0xffffffff
je 0x40a96f
or dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
or dword [esp + 0x10], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x15], al
je 0x40a99e
push 0x800
push dword [esp + 0x1064]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.00411638
mov byte [edi + 0x25], 0
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1050
ret 8