joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fb6db
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x100fb78f
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x100fb78b
mov eax, dword [eax + 0x20]
test eax, eax
je 0x100fb78b
cmp dword [ebx], eax
jne 0x100fb78b
mov eax, dword [ebx + 4]
sub eax, 1
je 0x100fb75a
sub eax, 1
je 0x100fb728
sub eax, 1
jne 0x100fb78b
mov edi, 0x428e
jmp 0x100fb75f
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100fb75f
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x10166964]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x100fb75f
add edi, 3
jmp 0x100fb75f
mov edi, 0x3ea0
push edi
call fcn.10007142
test eax, eax
je 0x100fb78f
push edi
push eax
mov ecx, 0x101b98a4
call fcn.10002530
test eax, eax
je 0x100fb78f
mov eax, dword [0x101b98a4]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x100fb784
call fcn.10006f15
int3

Function at 0x10129dc0
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x1015ef82
call fcn.1013b51c
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x10129ea0
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x10129ea0
cmp edi, 0x43
je 0x10129e05
cmp edi, 0x2d
jne 0x10129ea0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10129ea0
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.10007529
push eax
lea ecx, [ebp - 0x10]
call fcn.10002430
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.10004840
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.100028f0
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.10007ca7
call fcn.1013b4e5
ret 4
Function at 0x13b4a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x13db010]
push edi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x890334
nop
push eax
nop
call 0x77c4e026
mov ebx, eax
push 0x13e49e8
mov dword [ebp - 4], ebx
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
mov byte [ebx + edi], 0
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x13b4b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x76f043d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x13e49e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x13b4b06
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
push 0x13e49e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x890339
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x13b6ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x13b6f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x76ef9910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x13b6fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x13b6fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x13b6f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
nop
call 0x76ef9910
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x13b6fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x13b6fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x13b6fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.015e90f4]
push eax
call dword [fcn.015e9088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x13b6f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.013b7590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x18bfaf0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x15e90e0]
test esi, esi
jne 0x18bfb08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x18bfb01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x18bfb01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x18bfb6a
jmp 0x18bfb50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x15e8bf0]
add eax, esi
call fcn.018bd610
test eax, eax
je 0x18bfb73
inc edi
cmp edi, dword [ebp - 4]
jb 0x18bfb50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405793
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x447190], 2
jl 0x4057b8
movaps xmm0, xmmword [0x432750]
movaps xmmword [0x43dfc0], xmm0
movaps xmm0, xmmword [0x432740]
movaps xmmword [0x43dfd0], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405b46
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x432720]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4057c6
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 0x405e7a
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 0x405ea4
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43dfe0]
inc edi
sub esi, 1
jne 0x405e8c
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x406025
Capabilities:
Encode data using xor

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

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebx, 0x18
ja 0x406693
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x4064fb
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040edd3
test al, al
je 0x4064fb
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0042048a
add esp, 0xc
test eax, eax
je 0x40669d
inc edi
add esi, 0x178
cmp edi, 4
jb 0x4064c1
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.004119d0
xor eax, eax
mov ecx, ebx
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 + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00422d00
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004068f9
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040f00f
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x27c]
push 0x40
mov ecx, dword [edx + 0xa94]
lea ebx, [edx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0xa94], eax
mov edi, ebx
mov eax, dword [esp + 0x290]
pop ecx
mov dword [ebx + 0x134], eax
lea eax, [ebx + 0x102]
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [esp + 0x288]
push eax
movsw word es:[edi], word [esi]
call fcn.0041fb60
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041fb60
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041fb60
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041fb60
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040ef0e
cmp dword [esp + 0x290], ebp
je 0x406621
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041fb60
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x406654
push 8
push ebp
push esi
call fcn.0041f830
add esp, 0xc
mov al, byte [esp + ebp + 0x34]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x406638
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040f00f
cmp dword [esp + 0x288], 0
je 0x406685
push dword [esp + 0x288]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x100
push eax
push dword [esp + 0x284]
add ecx, 0xa9c
call fcn.0040e45a
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040f00f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 0x20
push 0x20
pop edi
push edi
lea eax, [esi + 0x112]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041fb60
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040ef0e
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041fb60
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041fb60
add esp, 0x18
jmp 0x406603
Function at 0x4066ee
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 0x406743
lea eax, [esp + 0x164]
push eax
call fcn.0040fbe6
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0040fc2c
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.0040fb03
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x40674a
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x406775
mov ecx, dword [esp + 0x1e8]
cmp byte [ecx], 0
je 0x406775
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x4067d3
xor edx, edx
test ebx, ebx
je 0x406795
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 0x406783
cmp ebx, edi
jae 0x4067af
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.0041f830
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.0040fbe6
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040fc2c
test ebp, ebp
je 0x4067f0
mov eax, dword [esp + 0x1e8]
cmp byte [eax], 0
jne 0x4067f0
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.0040fc2c
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040fb03
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x406844
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x406844
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x4068ae
test ebx, ebx
je 0x406866
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 0x406854
cmp ebx, 0x40
jae 0x406882
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.0041f830
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.0040fbe6
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040fc2c
test ebp, ebp
je 0x4068c4
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
jne 0x4068c4
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.0040fc2c
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.0040fb03
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24
Function at 0x4068f9
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 0x406913
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x48]
push eax
call fcn.0041fb60
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.004066ee
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041fb60
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 0x4069df
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.004066ee
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0041fb60
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x1c]
xor byte [ebp + ecx - 4], al
inc ecx
cmp ecx, ebx
jb 0x4069cd
sub edi, 1
jne 0x406990
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + esi + 0x3c]
call fcn.0041fb60
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x406988
push 0x44
lea eax, [ebp - 0x48]
push eax
call fcn.0040f00f
push ebx
lea eax, [ebp - 4]
push eax
call fcn.0040f00f
push ebx
lea eax, [ebp + 0x1c]
push eax
call fcn.0040f00f
push ebx
lea eax, [ebp - 0x68]
push eax
call fcn.0040f00f
pop edi
pop esi
pop ebx
add ebp, 0x58
leave
ret 0x20
Function at 0x409416
Capabilities:
Move file

Disassembly:
mov eax, 0x431640
call fcn.0041e698
mov eax, 0x503c
call fcn.0041e770
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4048]
push edi
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4095d7
cmp eax, ebx
jae 0x4095d7
push ebx
lea eax, [ebp - 0x5048]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4095d7
cmp eax, ebx
jae 0x4095d7
lea eax, [ebp - 0x4048]
push eax
call fcn.0040bef0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x5048]
push eax
call fcn.0040bef0
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x4095d7
push edi
push dword [ebp - 0x10]
call fcn.00411b77
test eax, eax
je 0x4095d7
push edi
push esi
call fcn.0040bef0
push eax
call fcn.00411b77
test eax, eax
jne 0x4095d7
mov word [ebp - 0x1010], ax
mov edi, ebx
test ax, ax
jne 0x409537
push 0x800
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.004101bc
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.0040bef0
push eax
call fcn.00404100
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040a285
test al, al
je 0x40951c
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x409523
mov ax, word [ebp - 0x1010]
add edi, 0x7b
cmp edi, 0x2710
jl 0x4094ca
test ax, ax
je 0x4095d7
mov edi, 0x800
lea eax, [ebp - 0x3048]
push edi
push esi
push eax
call fcn.004101bc
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3048]
push eax
call fcn.0040bf66
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3048]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4095d7
lea ecx, [ebp - 0x2048]
call fcn.004095ea
push esi
mov dword [ebp - 4], ebx
call fcn.0040a285
test al, al
jne 0x40959a
push 0x12
push esi
lea ecx, [ebp - 0x2048]
call fcn.004096fe
mov bl, al
lea eax, [ebp - 0x3048]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x4095c8
lea ecx, [ebp - 0x2048]
call fcn.004096b0
lea ecx, [ebp - 0x2048]
call fcn.004097de
lea ecx, [ebp - 0x2048]
call fcn.0040962d
mov al, 1
jmp 0x4095d9
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x409970
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1050
call fcn.0041e770
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 0x40999c
test bl, 4
jne 0x40999c
xor al, al
jmp 0x40999e
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 0x4099b7
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x4099c6
or ebx, 2
lea ecx, [esp + 0x18]
call fcn.00406f82
cmp byte [edi + 0x24], 0
je 0x4099db
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 0x409a5f
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.0040b78a
test al, al
je 0x409a4e
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 0x409a49
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x409a5f
cmp dword [esp + 0x10], 2
jne 0x409a5f
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x409a85
cmp ebp, 0xffffffff
je 0x409a85
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 + 0x14], al
je 0x409ab4
push 0x800
push dword [esp + 0x1064]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.004101bc
mov byte [edi + 0x25], 0
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1050
ret 8
Function at 0x409fe9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
test esi, esi
jne 0x409ffd
mov al, 1
jmp 0x40a0ff
cmp dword [ebp + 0x10], 1
jne 0x40a00e
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp + 8], eax
push ebx
push edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x40a05f
xor edi, edi
test esi, esi
je 0x40a081
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jb 0x40a033
mov eax, 0x4000
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x24]
add eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x40a07d
add edi, 0x4000
cmp edi, esi
jb 0x40a023
jmp 0x40a07d
push 0
lea eax, [esp + 0x14]
push eax
push esi
push dword [esp + 0x24]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x40a0f7
cmp byte [ebp + 0x1e], 0
je 0x40a0f7
cmp dword [ebp + 0x10], 0
jne 0x40a0f7
push 0
lea edi, [ebp + 0x32]
mov ecx, 0x440058
push edi
call fcn.00406c51
test al, al
je 0x40a0ea
cmp dword [esp + 0x10], esi
jae 0x40a010
cmp dword [esp + 0x10], 0
jbe 0x40a010
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x432260]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x432260]
mov ecx, ebp
call dword [edi + 0x10]
mov esi, dword [esp + 0x1c]
jmp 0x40a010
push edi
push 0
mov ecx, 0x440058
call fcn.00406f3f
pop edi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop esi
pop ebp
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041e770
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a2dc
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040b78a
test al, al
je 0x40a2dc
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
leave
ret 4

Function at 0x40a306
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041e770
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040bed4
movzx eax, word [eax]
cmp eax, 0x2e
je 0x40a337
cmp eax, 0x20
je 0x40a337
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a36a
push esi
call fcn.0040a285
test al, al
jne 0x40a37d
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.0040b78a
test al, al
je 0x40a37d
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40a37d
cmp byte [ebp + 0xc], 0
je 0x40a379
push dword [ebp + 0x10]
push esi
call fcn.0040a541
xor eax, eax
jmp 0x40a395
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40a392
cmp eax, 3
je 0x40a392
xor eax, eax
inc eax
jmp 0x40a395
push 2
pop eax
pop esi
leave
ret 0xc