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

Disassembly:
push esi
mov esi, dword [eax + 0xbc]
push 0x437554
add eax, 0xa8
push eax
call fcn.00405e4f
cmp dword [eax + 0x18], 8
jb 0x40b93d
mov eax, dword [eax + 4]
jmp 0x40b940
add eax, 4
lea ecx, [esi + esi + 0x1a]
push ecx
push eax
push 1
push 0x437570
push 0x437580
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop esi
ret

Function at 0x40c0ad
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1300
call fcn.0042d800
mov eax, dword [0x43e030]
xor eax, esp
mov dword [esp + 0x12fc], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], eax
cmp eax, esi
je 0x40c22f
push 0x437610
push 0x435d48
push 0x437620
lea eax, [esp + 0x1104]
push 0x103
push eax
call fcn.0041fb89
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x4375f8
lea eax, [esp + 0x1108]
push eax
mov edi, 0x80000001
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40c146
mov dword [esp + 8], esi
cmp dword [esp + 8], 0x40
jae 0x40c22f
push 0x105c
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00421bc0
push dword [esp + 0x18]
or dword [esp + 0x2c], 0xffffffff
push 0x435dc0
lea eax, [esp + 0x3c]
push 0x823
push eax
mov dword [esp + 0x34], 0x1060
mov dword [esp + 0x3c], 0x14
mov dword [esp + 0x40], esi
call fcn.0041fb89
mov dword [esp + 0x108c], esi
lea esi, [esp + 0x34]
call fcn.0040c294
mov edx, esi
mov dword [esp + 0x1090], eax
call fcn.0040c245
xor eax, eax
push 0x7e
push eax
mov word [esp + reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [esp + 0x109e]
push eax
call fcn.00421bc0
push dword [esp + 0x30]
lea eax, [esp + 0x10a4]
push 0x437608
push 0x43762c
push HeapFree
push eax
call fcn.0041fb89
add esp, 0x3c
push 0x1060
mov eax, esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
push 3
lea eax, [esp + 0x1084]
push eax
lea eax, [esp + 0x1108]
push eax
push edi
call esi
inc dword [esp + 8]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0x4375f8
lea eax, [esp + 0x1108]
push eax
push edi
call esi
xor eax, eax
inc eax
jmp 0x40c231
xor eax, eax
mov ecx, dword [esp + 0x1304]
pop edi
pop esi
xor ecx, esp
call fcn.0041f23c
mov esp, ebp
pop ebp
ret

Function at 0x40c245
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x40c293
push esi
mov ecx, 0x7bd3b105
xor eax, eax
push edi
imul ecx, ecx, 0xdd548
add ecx, 0x92fb05
mov edi, ecx
shr edi, 0x10
and edi, 0x7fff
mov esi, eax
add edi, 0x67183d
and esi, 0x1f
xor edi, dword [esi*4 + 0x43f3d8]
xor edi, dword [eax + edx]
xor edi, 0xd6312bda
mov dword [eax + edx], edi
add eax, 4
cmp eax, 0x1060
jl 0x40c252
pop edi
pop esi
ret
Function at 0x40c294
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, reloc.KERNEL32.dll_FindClose
test esi, esi
je 0x40c313
and dword [ebp - reloc.KERNEL32.dll_FindClose], 0
push FindClose
lea eax, [ebp - 0x3fc]
push 0
push eax
call fcn.00421bc0
add esp, 0xc
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40c2d2
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c2d4
shr eax, 1
dec edx
jne 0x40c2c5
mov dword [ebp + ecx*4 - reloc.KERNEL32.dll_FindClose], eax
inc ecx
cmp ecx, 0x100
jb 0x40c2c0
or eax, 0xffffffff
xor ecx, ecx
push edi
movzx edx, byte [ecx + esi]
mov edi, eax
and edi, 0xff
xor edx, edi
shr eax, 8
xor eax, dword [ebp + edx*4 - reloc.KERNEL32.dll_FindClose]
inc ecx
cmp ecx, 0x1060
jb 0x40c2ed
not eax
pop edi
leave
ret
xor eax, eax
leave
ret
Function at 0x40ce72
Capabilities:
Hide graphical window

Disassembly:
dec ecx
je 0x40ce85
dec ecx
jne 0x40ceac
push 1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40ceac
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0040d009
mov eax, dword [eax + 4]
test eax, eax
je 0x40ceac
push 0
push 0
push 0x502
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
xor eax, eax
ret
Function at 0x40d768
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
push dword [ebx + 0x435990]
mov edi, dword [ebx + 0x43598c]
mov ecx, esi
call fcn.0040dbd2
add ebx, 8
cmp ebx, 0x20
jb 0x40d76f
cmp dword [esi + 0x14], 0
jne 0x40d7e6
push 1
mov edi, 0x437924
mov ecx, esi
call fcn.0040dbd2
cmp dword [esi + 0x54], 8
jb 0x40d7a9
mov eax, dword [esi + 0x40]
jmp 0x40d7ac
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x40d7e6
cmp dword [esi + 0x54], 8
jb 0x40d7c2
mov eax, dword [esi + 0x40]
jmp 0x40d7c5
lea eax, [esi + 0x40]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x54], 8
jb 0x40d7dc
mov esi, dword [esi + 0x40]
jmp 0x40d7df
add esi, 0x40
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
ret
Function at 0x40d7ea
Capabilities:
Accept command line arguments
Delete registry key
Persist via app paths registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x18
mov eax, 0x4323ec
call fcn.00421aad
mov eax, dword [ebp + 0x230]
mov edi, dword [eax + 0x1c]
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg edi
sbb edi, edi
mov esi, 0x80000002
push 0x4372d8
add edi, esi
push edi
mov dword [ebp - 0x14], eax
call ebx
push 0x436fc0
push edi
call ebx
mov edi, 0x435d48
push edi
push 0x80000001
call ebx
push edi
push esi
call ebx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0
je 0x40d881
cmp dword [eax + 0x54], 8
mov ecx, dword [eax + 0x50]
jb 0x40d863
mov eax, dword [eax + 0x40]
jmp 0x40d866
add eax, 0x40
add ecx, ecx
push ecx
push eax
push 1
push 0x437044
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x80000001
call edi
jmp 0x40d887
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
and dword [ebp - 0x10], 0
push 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x435e94
mov ebx, 0x435ea8
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40d8bc
cmp dword [ebp - 0x18], 4
je 0x40d8c0
and dword [ebp - 0x10], 0
inc dword [ebp - 0x10]
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0x435e94
push ebx
push esi
call edi
push 0
call fcn.004203d7
pop ecx
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0x437938
push ebx
push esi
call edi
call fcn.004065a1
lea ecx, [eax + 0x10]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x14], edx
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40d900
sub eax, dword [ebp - 0x14]
sar eax, 1
add eax, eax
push eax
push ecx
push 1
push 0x437948
push ebx
push esi
call edi
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push eax
call fcn.00421bc0
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0x435d08
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov edi, 0x103
call fcn.0040fa78
xor edi, edi
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
mov word [ebp + 4], ax
lea eax, [ebp]
push eax
lea edx, [ebp + 0x1c]
mov dword [ebp - 4], edi
call fcn.004106db
mov eax, dword [ebp + 4]
add esp, 0x10
cmp dword [ebp + 0x18], 8
jae 0x40d980
lea eax, [ebp + 4]
push 0x437954
push eax
call fcn.0041faf6
pop ecx
pop ecx
test eax, eax
je 0x40d9b1
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40d99d
lea eax, [ebp + 4]
push 0x437970
push eax
call fcn.0041faf6
pop ecx
pop ecx
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x40d9b8
mov dword [ebp - 0x1c], 0xff
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0x43798c
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push edi
push 1
lea esi, [ebp]
call fcn.004064c2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0041f23c
add ebp, 0x228
leave
ret 4
Function at 0x40db3b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x40dbc1
cmp word [esi], 0
je 0x40dbc1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 8
jge 0x40dbc1
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00421bc0
add esp, 0xc
push 0
push 0x28
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40db9b
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042010b
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x40dbc4
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f23c
leave
ret 4

Function at 0x40dc60
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
cdq
push 3
pop ecx
idiv ecx
lea eax, [ebx + 2]
xor esi, esi
mov dword [ebp - 8], edx
cdq
idiv ecx
lea eax, [eax*4 + 1]
push eax
call fcn.0041edea
pop ecx
mov ecx, eax
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
jle 0x40dd07
cdq
push 3
pop ebx
idiv ebx
mov eax, dword [ebp - 4]
test edx, edx
jne 0x40dcac
movzx edx, byte [eax + edi]
shr edx, 2
jmp 0x40dcf2
cmp edx, 1
jne 0x40dccc
movzx edx, byte [eax + edi - 1]
movzx ebx, byte [eax + edi]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + 0x43f390]
jmp 0x40dcf8
cmp edx, 2
jne 0x40dcfc
movzx edx, byte [eax + edi - 1]
movzx ebx, byte [eax + edi]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + 0x43f390]
mov byte [ecx + esi], dl
movzx edx, byte [eax + edi]
inc esi
and edx, 0x3f
mov dl, byte [edx + 0x43f390]
mov byte [ecx + esi], dl
inc esi
mov ebx, dword [ebp + 8]
inc eax
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x40dc96
cmp dword [ebp - 8], 1
jne 0x40dd28
movzx eax, byte [edi + ebx - 1]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x43f390]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], HeapFree
jmp 0x40dd40
cmp dword [ebp - 8], 2
jne 0x40dd46
movzx eax, byte [edi + ebx - 1]
and eax, 0xf
mov al, byte [eax*4 + 0x43f390]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], HeapFree
inc esi
mov byte [ecx + esi], 0
pop esi
mov eax, ecx
pop ebx
leave
ret
Function at 0x40de57
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x74], eax
cmp dword [0x4409d4], 0
je 0x40de7f
mov eax, dword [0x4409d0]
jmp 0x40dfaf
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0xa4]
push 0
inc esi
push eax
mov dword [0x4409d4], esi
call fcn.00421bc0
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40dfa9
push 2
pop ecx
cmp dword [ebp - 0x98], ecx
jne 0x40dfa9
mov edx, dword [ebp - 0xa4]
cmp edx, 4
jbe 0x40dfa9
cmp edx, 5
jne 0x40df42
cmp dword [ebp - 0xa0], 0
jne 0x40def1
mov eax, ecx
jmp 0x40dfa2
cmp dword [ebp - 0xa0], esi
jne 0x40df2e
mov ax, word [ebp + 0x6c]
test ax, ax
jne 0x40df0a
push 3
pop eax
jmp 0x40dfa2
cmp ax, si
jne 0x40df13
push 4
jmp 0x40df04
cmp ax, cx
jne 0x40df1c
push 6
jmp 0x40df04
cmp ax, 3
jne 0x40df8e
mov dword [0x4409d0], 7
jmp 0x40df8e
cmp dword [ebp - 0xa0], ecx
jne 0x40df8e
mov dword [0x4409d0], 5
jmp 0x40df8e
cmp edx, 6
jne 0x40df76
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x40df55
push 8
jmp 0x40df04
cmp eax, esi
jne 0x40df5d
push 9
jmp 0x40df04
cmp eax, ecx
jne 0x40df65
push 0xa
jmp 0x40df04
cmp eax, 3
jne 0x40df8e
mov dword [0x4409d0], 0xb
jmp 0x40df8e
cmp edx, 0xa
jne 0x40df8e
cmp dword [ebp - 0xa0], 0
jne 0x40df8e
mov dword [0x4409d0], 0xc
mov eax, dword [0x4409d0]
test eax, eax
jne 0x40dfae
cmp edx, 5
sbb eax, eax
and eax, 0xfffffff4
add eax, 0xd
mov dword [0x4409d0], eax
jmp 0x40dfae
mov eax, dword [0x4409d0]
pop esi
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.0041f23c
add ebp, 0x78
leave
ret

Function at 0x40dfbe
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.0042d800
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
push ebx
xor ebx, ebx
test esi, esi
je 0x40e088
test edi, edi
je 0x40e088
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e088
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00421bc0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40e088
cmp eax, 0x2000
ja 0x40e088
lea ecx, [ebp - 0x74]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40e084
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4379a4
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e084
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
mov eax, dword [ebp + 0x3f98]
push 0x4379a8
dec eax
push eax
push edi
call fcn.0041fb89
add esp, 0x1c
inc ebx
mov eax, ebx
jmp 0x40e08a
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
pop ebx
call fcn.0041f23c
add ebp, 0x3f90
leave
ret
Function at 0x40e1ff
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
xor eax, eax
cmp esi, edi
je 0x40e288
push 0x206
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00421bc0
add esp, 0xc
push edi
push 0x26
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4379c0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e286
lea eax, [ebp - 0x20c]
push eax
push 0x435dc0
push 0x103
push esi
call fcn.0041fb89
add esp, 0x10
inc edi
mov eax, edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041f23c
leave
ret

Function at 0x40e295
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40e2bc
inc eax
jmp 0x40e35e
xor eax, eax
push 0x7e
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push esi
push eax
call fcn.00421bc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x437a00
lea eax, [ebp - 0x84]
push HeapFree
push eax
call fcn.0041fb89
xor eax, eax
push 0x206
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x28a]
push esi
push eax
call fcn.00421bc0
add esp, 0x1c
lea eax, [ebp - 0x84]
push eax
push edi
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40e35c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041f23c
leave
ret

Function at 0x40e36b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40e40e
cmp word [esi], 0
je 0x40e40e
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x40e3a3
xor eax, eax
inc eax
jmp 0x40e410
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00421bc0
push esi
push 0x435dc0
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.0041fb89
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40e40e
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x40e403
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e36b
pop ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40e410
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041f23c
leave
ret
Function at 0x40e41e
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x43e030]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
cmp esi, ebx
je 0x40e5ca
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40e5ca
push 0x24c
lea eax, [esp + 0x20]
push ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.00421bc0
xor eax, eax
mov edi, 0x206
push edi
mov word [esp + reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [esp + 0x482]
push ebx
push eax
call fcn.00421bc0
add esp, 0x18
push 0x438024
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x478]
push eax
call esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40e5ca
mov ecx, 0x437a1c
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e4f5
cmp dx, bx
je 0x40e4f1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e4f5
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40e4cf
xor eax, eax
jmp 0x40e4fa
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40e58e
mov ecx, 0x437a20
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e531
cmp dx, bx
je 0x40e52d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e531
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40e50b
xor eax, eax
jmp 0x40e536
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40e58e
xor eax, eax
push edi
mov word [esp + reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [esp + 0x26e]
push ebx
push eax
call fcn.00421bc0
add esp, 0xc
test byte [esp + 0x18], 0x10
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x270]
push eax
je 0x40e580
call esi
lea eax, [esp + 0x268]
push eax
call fcn.0040e41e
pop ecx
jmp 0x40e58e
call esi
lea ecx, [esp + 0x268]
call fcn.0040e8bd
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e4c6
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40e5cc
xor eax, eax
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041f23c
mov esp, ebp
pop ebp
ret
Function at 0x40e5e1
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3a8]
and dword [ebp - 0x7c], 0
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], edi
test eax, eax
je 0x40e74e
test edi, edi
je 0x40e74e
cmp dword [ebp + 0x3ac], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x40e63a
push edi
call esi
test eax, eax
jne 0x40e74e
push ebx
xor eax, eax
mov ebx, 0x206
push ebx
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00421bc0
push edi
push 0x435dc0
mov edi, 0x103
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.0041fb89
add esp, 0x1c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x74]
push eax
call fcn.0040e36b
pop ecx
test eax, eax
je 0x40e748
cmp dword [ebp + 0x3ac], 0
je 0x40e6b5
push dword [ebp - 0x78]
call esi
test eax, eax
jne 0x40e748
push dword [ebp + 0x3ac]
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x7c], eax
jmp 0x40e748
xor eax, eax
push ebx
push eax
mov word [ebp + reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp + 0x196]
push eax
call fcn.00421bc0
mov ebx, dword [ebp - 0x78]
push ebx
push 0x437a28
lea eax, [ebp + 0x194]
push edi
push eax
call fcn.0041fb89
add esp, 0x1c
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x40e6fd
lea ecx, [ebp + 0x194]
call fcn.0040e8bd
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp + 0x194]
push eax
push ebx
call edi
push ebx
mov dword [ebp - 0x78], eax
call esi
test eax, eax
jne 0x40e725
push eax
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x78], 0
je 0x40e748
cmp dword [ebp - 0x7c], 0
jne 0x40e73d
push ebx
lea eax, [ebp + 0x194]
push eax
call edi
jmp 0x40e748
lea ecx, [ebp + 0x194]
call fcn.0040e8bd
mov eax, dword [ebp - 0x7c]
pop ebx
jmp 0x40e750
xor eax, eax
mov ecx, dword [ebp + 0x39c]
pop edi
xor ecx, ebp
pop esi
call fcn.0041f23c
add ebp, 0x3a0
leave
ret
Function at 0x40e767
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x437a40
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], ebx
call fcn.00420a04
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp edi, ebx
je 0x40e80f
push esi
push 2
push ebx
push edi
call fcn.00420aa5
push edi
call fcn.00420cc7
push ebx
push ebx
push edi
mov esi, eax
call fcn.00420aa5
lea ebx, [esi + 1]
push ebx
call fcn.0041edea
mov edi, eax
add esp, 0x20
test edi, edi
je 0x40e805
push ebx
push 0
push edi
call fcn.00421bc0
push dword [ebp - 4]
push esi
push 1
push edi
call fcn.00420fd5
push 0x437a48
push dword [ebp + 0xc]
call fcn.00420a04
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x40e7fe
push ebx
push esi
xor esi, esi
inc esi
push esi
push edi
call fcn.00421154
push ebx
call fcn.0042124d
add esp, 0x14
mov dword [ebp - 8], esi
push edi
call fcn.0041f319
pop ecx
push dword [ebp - 4]
call fcn.0042124d
pop ecx
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret

Function at 0x40e816
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push edi
test ebx, ebx
je 0x40e8a5
test esi, esi
je 0x40e8a5
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
jne 0x40e8a5
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00421bc0
push esi
push 0x435dc0
lea eax, [ebp - 0x7c]
push 0x103
push eax
call fcn.0041fb89
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x7c]
push eax
call fcn.0040e36b
pop ecx
test eax, eax
je 0x40e8a0
push esi
call edi
test eax, eax
jne 0x40e8a0
push esi
push ebx
call fcn.0040e767
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
jmp 0x40e8a7
xor eax, eax
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.0041f23c
add ebp, 0x190
leave
ret