joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6f25d950
Capabilities:
Move file

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
test byte [0x6f2665c8], 8
jne 0x6f25d990
cmp edi, 6
ja case.default.0x6f25d981
jmp dword [edi*4 + 0x6f274214]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__p___X__0x_Ix__0x_Ix___n
mov dword [esp + 8], str.mmioDosIOProc
mov dword [esp + 4], 0x6f2665c8
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0_4
mov edx, dword [ebp - 0x1c]
jmp 0x6f25d978
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll__hwrite]
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
je 0x6f25d9f1
add dword [esi + 0x2c], ebx
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov ecx, dword [esi + 0x30]
cmp edx, 2
je 0x6f25db18
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll__llseek]
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
je 0x6f25d9f1
mov dword [esi + 0x2c], eax
jmp 0x6f25d9f1
mov edx, dword [esi]
test edx, 0x20000
jne 0x6f25db50
test ebx, ebx
jne 0x6f25db30
cmp dword [esi + 0x30], 0xffffffff
je 0x6f25daa4
lea esi, [esi]
xor ebx, ebx
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
and ebx, 0x10
jne 0x6f25da58
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll__lclose]
sub esp, 4
jmp 0x6f25d9f1
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_MoveFileA]
sub esp, 8
test eax, eax
jne 0x6f25da58
mov ebx, 0x101
jmp 0x6f25d9f1
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll__lread]
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
jne 0x6f25d9ee
jmp 0x6f25d9f1
test byte [0x6f2665c8], 1
je 0x6f25da58
mov dword [esp + 0x10], edi
xor ebx, ebx
mov dword [esp + 0xc], str.unexpected_message__u_n
mov dword [esp + 8], str.mmioDosIOProc
mov dword [esp + 4], 0x6f2665c8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_4
jmp 0x6f25da5a
mov dword [esp + 8], 2
neg ebx
jmp 0x6f25da18
mov eax, ebx
call sym._create_file_OF
cmp eax, 0xffffffff
je 0x6f25db90
mov dword [esi + 0x30], eax
xor ebx, ebx
jmp 0x6f25d9f1
mov ebx, 0x103
test byte [0x6f2665c8], 1
je 0x6f25d9f1
mov dword [esp + 0xc], str.MMIO_GETTEMP_not_implemented_n
mov dword [esp + 8], str.mmioDosIOProc
mov dword [esp + 4], 0x6f2665c8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_4
jmp 0x6f25d9f1
mov dword [esi + 0x30], 0xffffffff
mov ebx, 0x101
jmp 0x6f25d9f1
Function at 0x6f25dfa0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx + 8]
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x6f25e0d8
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x24], edx
mov esi, 0x104
mov dword [esp + 8], edx
mov dword [ebp - 0x20], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
cmp eax, 0x104
cmovge esi, eax
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6f25e0dc
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov dword [esp], 1
mov ecx, dword [ebp - 0x1c]
mov edx, edi
mov eax, ebx
call sym._MMIO_Open
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
xor ebx, ebx
jmp 0x6f25e08c
xor esi, esi
jmp 0x6f25e0c5
Function at 0x6f25e510
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx + 8]
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
test esi, esi
je 0x6f25e5f9
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0x28], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov edx, eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6f25e73d
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], esi
mov esi, ebx
mov dword [esp + 0x1c], 0
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
test edi, edi
je 0x6f25e730
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0x28], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov edx, eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6f25e734
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
call sym.winmm.dll_mmioRenameA
mov dword [ebp - 0x1c], eax
sub esp, 0x10
mov dword [esp + 8], esi
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
xor ebx, ebx
jmp 0x6f25e6bb
mov dword [ebp - 0x1c], 7
jmp 0x6f25e6db
mov dword [ebp - 0x1c], 7
xor esi, esi
jmp 0x6f25e6db
Function at 0x6f2628e0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov esi, dword [ecx + 4]
mov edx, dword [ecx]
mov ebx, dword [ecx + 8]
test esi, esi
je 0x6f262a08
test ebx, ebx
jne 0x6f262920
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
lea ecx, [ebx + ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x6f262a1d
mov edx, dword [ebp - 0x1c]
lea eax, [edx - 0x20]
cmp eax, 3
jbe 0x6f2629a0
cmp edx, 0x15
jbe 0x6f2629a0
mov ebx, 9
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [0x6f267188]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jle 0x6f262964
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
jmp 0x6f262969
lea esp, [ebp - 0x10]
mov ebx, 0xb
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov ebx, 7
jmp 0x6f262908
Function at 0x320353ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x3203540e
pop dword [ebp - 0x48]
mov eax, 0x3203540e
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xedacea29
sub dword [ebp - 0x58], 0x9f5aa4de
mov dword [ebp - 0x54], 0x3ddc8325
add dword [ebp - 0x54], 0xf456c920
mov dword [ebp - 0x50], 0xd11547aa
sub dword [ebp - 0x50], 0x84c9037c
mov dword [ebp - 0x4c], 0x31b97ecd
sub dword [ebp - 0x4c], 0x31b97ecd
lea eax, [ebp - 0x58]
push eax
mov eax, 0xb8f959f0
add eax, 0x790bf690
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xc31de42d
sub dword [ebp - 0x58], 0x4eab7ad7
mov dword [ebp - 0x54], 0xde86342e
add dword [ebp - 0x54], 0x62e62d47
mov dword [ebp - 0x50], 0x60739e8d
sub dword [ebp - 0x50], 0xfd043221
mov dword [ebp - 0x4c], 0x6ca6ce32
add dword [ebp - 0x4c], 0x935931ce
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xdc68d262
add eax, 0x559c7e16
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x44f69
push 0
call eax
mov ecx, 0x22f3e1c4
sub ecx, 0x22f3a3e0
mov edx, eax
mov ebx, 0x3207d600
add ebx, dword [ebp - 0x48]
mov edi, 0xbe40b01b
sub edi, 0x2a18fdd1
add dword [ebp - 0x2c], esi
mov esi, dword [ebx]
sub dword [ebp - 0x34], edx
sub esi, edi
sub dword [ebp - 0x44], ebx
mov dword [edx], esi
xor dword [ebp - 0x1c], esi
add edx, 0x378a91c6
add edx, 0xc8756e3e
add ebx, 0x138e4cff
add ebx, 0xec71b305
loop 0x32035525
add eax, 0xea63
mov ebx, eax
add eax, 0x43f5bd75
sub eax, 0x43f5bd70
mov ecx, 0x95590b60
sub ecx, 0x63590b60
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x40a0b9
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
sub esi, edx
push edi
xor edi, edi
cmp edx, dword [ebp + 0xc]
cmova esi, eax
test esi, esi
je 0x40a0e9
movzx eax, byte [edx]
xor eax, dword [ecx]
imul eax, eax, 0x1000193
inc edx
inc edi
mov dword [ecx], eax
cmp edi, esi
jne 0x40a0d4
jmp 0x40a0eb
mov eax, dword [ecx]
pop edi
pop esi
pop ebp
ret 8

Function at 0x40d79a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40d7bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d878
jmp 0x40d873
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x40d7dd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40d7df
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x40d867
jg 0x40d7f2
test esi, esi
je 0x40d867
test ecx, ecx
jl 0x40d834
jg 0x40d7fc
test eax, eax
je 0x40d834
cmp ebx, ecx
jg 0x40d80e
jl 0x40d806
cmp esi, eax
jae 0x40d80e
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0055ecf0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40d83a
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x40d867
jg 0x40d844
test esi, esi
je 0x40d867
cmp dword [edi + 0x4c], 0
je 0x40d867
mov ecx, edi
call fcn.0040c9c7
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.00568aca
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
leave
ret 0xc
Function at 0x4115c1
Capabilities:
Copy file

Disassembly:
push 0xf4
mov eax, 0x591004
call fcn.0054636d
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x100], edi
call fcn.0041efad
mov ebx, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0041efad
add esp, 0x10
mov edi, eax
push 0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00412791
cmp dword [ebx + 0x14], 8
mov cl, al
jb 0x41161b
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x411623
mov edi, dword [edi]
xor eax, eax
test cl, cl
sete al
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
lea ecx, [ebp - 0x28]
cmp esi, 1
sete bl
call fcn.00406687
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00406687
cmp esi, 1
je 0x4116d0
call fcn.0040c461
push 2
pop esi
push esi
push eax
lea ecx, [ebp - 0xf8]
call fcn.0040bd69
lea eax, [ebp - 0xf8]
mov dword [ebp - 4], esi
push str.Failed_to_copy_from_
push eax
call fcn.00401609
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._due_to
push dword [ebp - 0xfc]
push str._to_
push dword [ebp - 0x100]
push esi
call fcn.004015e9
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
push eax
call fcn.004015e9
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
mov ecx, eax
call fcn.004044df
lea ecx, [ebp - 0xf8]
call fcn.0040bf50
mov al, bl
call fcn.00546317
ret

Function at 0x4116d8
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041efad
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x4116ff
mov eax, dword [eax]
push ebx
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.00406687
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005462f1
leave
ret
Function at 0x411d41
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0x254
mov eax, 0x5910f6
call fcn.0054636d
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x260], ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6443b4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x63e560]
cmp eax, dword [ecx + 8]
jg 0x411ec8
cmp byte [0x63e55c], 0
jne 0x411e20
cmp esi, 0x12
jne 0x411de4
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00411114
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 4], 1
push 0x5c
mov ecx, esi
call fcn.00408905
push esi
mov ecx, ebx
call fcn.004037a9
lea ecx, [ebp - 0x234]
call fcn.00406661
jmp 0x411ec0
cmp esi, 0x13
jne 0x411e20
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str._CommonProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00411114
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 4], 2
jmp 0x411dc3
and dword [ebp - 0x260], 0
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.00412545
mov esi, eax
lea edi, [ebp - 0x244]
pop ecx
pop ecx
lea eax, [ebp - 0x260]
movsd dword es:[edi], dword [esi]
push eax
push 0
push 0
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x244]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x411eb2
push dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
push eax
call fcn.00411114
pop ecx
pop ecx
mov esi, eax
push 0x5c
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.00408905
push esi
lea ecx, [ebp - 0x234]
call fcn.004037a9
lea ecx, [ebp - 0x25c]
call fcn.00406661
push dword [ebp - 0x260]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x234]
push eax
jmp 0x411dcd
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov eax, ebx
call fcn.00546317
ret
mov edi, 0x63e560
push edi
call fcn.00546ee7
cmp dword [0x63e560], 0xffffffff
pop ecx
jne 0x411d7c
and dword [ebp - 4], 0
call fcn.004f36d7
push edi
cmp dword [eax + 0x1c], 1
sete byte [0x63e55c]
or dword [ebp - 4], 0xffffffff
call fcn.00546e9d
pop ecx
jmp 0x411d7c
Function at 0x4120ae
Capabilities:
Create directory

Disassembly:
push 0x140
mov eax, 0x591169
call fcn.0054636d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x90]
mov esi, dword [ebp + 0xc]
push edi
push eax
call fcn.00411980
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x90], ebx
jne 0x4121e7
lea ecx, [ebp - 0x88]
call fcn.00426f3f
test al, al
je 0x4120f9
mov bl, 1
jmp 0x4121e7
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.0041ee2c
pop ecx
pop ecx
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
je 0x4121d7
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004120ae
pop ecx
pop ecx
test al, al
je 0x4121d7
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0041efad
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x41213b
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x41215b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x149], bl
cmp eax, 0xb7
jne 0x412162
mov byte [ebp - 0x149], 1
lea ecx, [ebp - 0x58]
call fcn.00406687
cmp byte [ebp - 0x149], 0
je 0x412178
xor eax, eax
inc eax
jmp 0x4121d5
call fcn.0040c461
push 2
push eax
lea ecx, [ebp - 0x148]
call fcn.0040bd69
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 2
push str.Failed_to_create_directory_at_
push eax
call fcn.00401609
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._due_to
push edi
push esi
call fcn.004015e9
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
mov ecx, eax
call fcn.004044df
lea ecx, [ebp - 0x148]
call fcn.0040bf50
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.00406661
lea ecx, [ebp - 0x40]
call fcn.00406661
lea ecx, [ebp - 0x80]
call fcn.00406661
mov al, bl
call fcn.00546317
ret
Function at 0x4122a2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], eax
call fcn.00426ffb
test al, al
jne 0x4122f8
xor ebx, ebx
mov dword [esi], 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], bl
push eax
lea ecx, [esi + 4]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], ebx
call fcn.004037a9
lea ecx, [ebp - 0x1c]
jmp 0x4123f2
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041efad
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x41230f
mov eax, dword [eax]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 5
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call fcn.00406687
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x41233f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x4122d7
mov eax, dword [ebp - 0x38]
cdq
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push edi
push eax
mov dword [ebp - 0x44], edx
call fcn.004111d4
pop ecx
pop ecx
push ebx
mov edi, dword [eax]
lea ecx, [ebp - 0x34]
push edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], bl
call fcn.00406862
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x40]
push ebx
push ecx
push edi
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push edi
mov dword [ebp - 0x40], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
cmp eax, 1
jne 0x4123ba
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x40], eax
jne 0x4123c8
lea eax, [ebp - 0x34]
mov dword [esi], ebx
push eax
lea ecx, [esi + 4]
call fcn.004037a9
jmp 0x4123ef
test eax, eax
jne 0x4123c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x4123ce
mov dword [esi], 0x26
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
push eax
lea ecx, [esi + 4]
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], bl
call fcn.004037a9
lea ecx, [ebp - 0x1c]
call fcn.00406661
lea ecx, [ebp - 0x34]
call fcn.00406661
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005462f1
leave
ret

Function at 0x41247b
Capabilities:
Move file

Disassembly:
push 0x34
mov eax, 0x5911f3
call fcn.0054636d
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041efad
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0041efad
add esp, 0x10
cmp dword [edi + 0x14], 8
jb 0x4124b2
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x4124ba
mov eax, dword [eax]
push 0xb
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x28]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.00406687
lea ecx, [ebp - 0x40]
call fcn.00406687
mov al, bl
call fcn.00546317
ret
Function at 0x4124e5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push eax
call fcn.00411491
mov edi, eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0041efad
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41251b
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.00406687
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005462f1
leave
ret

Function at 0x412600
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x591220
call fcn.0054636d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], ecx
push eax
call fcn.0041efad
pop ecx
pop ecx
mov edi, eax
xor esi, esi
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], esi
jb 0x412633
mov edi, dword [edi]
push esi
push ebx
call fcn.00411491
pop ecx
push eax
push 2
push esi
push 4
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00406687
cmp edi, 0xffffffff
jne 0x412664
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4126ae
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x412688
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
je 0x41269c
test esi, esi
je 0x4126a0
call ebx
mov esi, eax
test esi, esi
jne 0x4126ac
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x2c], eax
push 0x27
pop ecx
cmovne esi, ecx
mov eax, esi
call fcn.00546317
ret