joyce8/EMBER2024-capa huggingface dataset:
Function at 0x573890
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x63c778]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5738d6
cmp word [ebx], dx
jne 0x5738d6
or byte [eax + edi + 0x28], 4
jmp 0x5738db
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x573a3e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x573a1e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x57391c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x573952
cmp eax, edx
jae 0x573960
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x5738f7
jmp 0x573a3e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x573a19
cmp dword [ebp - 0x18], 0
je 0x573a19
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x63c778]
test byte [eax + edi + 0x28], 0x48
je 0x5739ef
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x5739b3
mov word [esi], cx
jmp 0x5739ea
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x63c778]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x63c778]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x63c778]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x573a3e
pop eax
cmp word [ebp - 4], ax
jne 0x5739ff
cmp esi, ebx
jne 0x5739ff
mov word [esi], ax
jmp 0x573a3b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0056e2da
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x573a3e
push 0xd
pop eax
jmp 0x5739fa
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x63c778]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x573a38
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x573a3e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57830a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x60af7c
push 0x60af74
push str.FlsAlloc
push 0x1f
call fcn.00578135
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57833e
push dword [ebp + 8]
mov ecx, esi
call dword [0x59753c]
call esi
jmp 0x578344
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x578388
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x60af8c
push 0x60af84
push str.FlsGetValue
push 0x21
call fcn.00578135
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5783bf
push dword [ebp + 8]
mov ecx, esi
call dword [0x59753c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5783c7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x60af94
push 0x60af8c
push str.FlsSetValue
push 0x22
call fcn.00578135
mov esi, eax
add esp, 0x10
test esi, esi
je 0x578401
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x59753c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x579077
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x62fff4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5790ba
call fcn.00561944
mov dword [eax], 0xf
call fcn.00561957
mov dword [eax], 0xd
call fcn.0055cabf
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540aaa
leave
ret
test eax, eax
jne 0x5790c1
inc eax
jmp 0x5790ae
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5790ac
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5790ae
Function at 0x57dbec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x57dc89
push ebx
push esi
call fcn.0057dbb5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00579264
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x57dc36
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x57dc88
push edi
push eax
call fcn.00576af6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x57dc56
call fcn.005762aa
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x57dc87
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00579264
add esp, 0x20
test eax, eax
jne 0x57dc75
push edi
call fcn.005762aa
jmp 0x57dc7d
push ebx
call fcn.005762aa
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x57dc8c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x57dc9d
pop esi
ret
push ebx
push edi
push esi
call fcn.0057dbb5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00576af6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x57dcc5
push ebx
push esi
push edi
call fcn.005594a0
add esp, 0xc
push 0
call fcn.005762aa
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x57e421
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057df3c

Function at 0x58038d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00575f62
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5803fc
cmp esi, dword [ebp - 4]
je 0x5803f7
cmp dword [ebp + 0xc], 0
je 0x5803f7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5803d4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0057fedf
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5803fe
xor eax, eax
inc eax
jmp 0x5803fe
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x580463
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x62fff4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00575f62
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00575f62
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5804da
cmp word [ecx], dx
je 0x5804da
mov eax, dword [0x60b63c]
push edi
dec eax
push eax
push 0x60b528
call fcn.00580402
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x58054d
cmp word [eax], dx
je 0x58054d
mov eax, dword [edi]
test eax, eax
je 0x5804fe
cmp word [eax], dx
je 0x5804fe
lea eax, [ebp - 0x10]
push eax
call fcn.0057fde5
jmp 0x580507
lea eax, [ebp - 0x10]
push eax
call fcn.0057fe80
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x580577
mov eax, dword [0x60b524]
push dword [ebp - 0x14]
dec eax
push eax
push 0x60b218
call fcn.00580402
add esp, 0xc
test al, al
je 0x580577
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x580542
cmp word [eax], di
je 0x580542
lea eax, [ebp - 0x10]
push eax
call fcn.0057fde5
pop ecx
jmp 0x580579
lea eax, [ebp - 0x10]
push eax
call fcn.0057fe80
jmp 0x58053f
mov eax, dword [edi]
test eax, eax
je 0x580564
cmp word [eax], dx
je 0x580564
lea eax, [ebp - 0x10]
push eax
call fcn.0057fd9a
pop ecx
jmp 0x580577
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x580642
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00580287
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x580642
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x580642
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x580642
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5805cf
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005785a3
test ebx, ebx
je 0x58063d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005785a3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x580642
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x580642
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00583a96
add esp, 0x10
xor eax, eax
inc eax
jmp 0x580644
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00540aaa
leave
ret
Function at 0x580e65
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00580de1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x580fd4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x580fd4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x580f89
jg 0x580ec1
test eax, eax
je 0x580f7f
push 1
push 0x1000
call fcn.0057624d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x580ee4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x580f76
push 0x8000
push ebx
call fcn.0056ba77
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x580f0d
jg 0x580f08
cmp ecx, 0x1000
jb 0x580f0d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005749ad
add esp, 0x10
cmp eax, 0xffffffff
je 0x580f52
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x580f08
jl 0x580f39
test ecx, ecx
jne 0x580efa
push dword [ebp - 0xc]
push ebx
call fcn.0056ba77
push esi
call fcn.005762aa
add esp, 0xc
xor ebx, ebx
jmp 0x580fe2
cmp byte [edi + 0x24], 0
je 0x580f69
cmp dword [edi + 0x20], 5
jne 0x580f69
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x580f74
mov ebx, dword [edi + 0x18]
jmp 0x580f76
xor ebx, ebx
push esi
call fcn.005762aa
pop ecx
jmp 0x580fe2
test ecx, ecx
jg 0x580f4b
jl 0x580f89
test eax, eax
jae 0x580f4b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0056e2da
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x580fa9
cmp byte [edi + 0x1c], 0
je 0x580f4b
jmp 0x580fda
push ebx
call fcn.00568c1b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x580f4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x580fe2
cmp byte [edi + 0x1c], 0
je 0x580fdf
mov ebx, dword [edi + 0x18]
jmp 0x580fe2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0056e2da
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x588997
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005889a0

Function at 0x588c51
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x614aa0]
sub edx, 1
jne 0x588c5a
pop ebp
ret
Function at 0x452cbe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x452ccd
pop dword [ebp - 0x20]
mov eax, 0x452ccd
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x1d63f994
add dword [ebp - 0x30], 0x30ee4bb7
mov dword [ebp - 0x2c], 0xc3a48f40
sub dword [ebp - 0x2c], 0x917142fb
mov dword [ebp - 0x28], 0x232665f8
add dword [ebp - 0x28], 0x2925de36
mov dword [ebp - 0x24], 0x1b398054
sub dword [ebp - 0x24], 0x1b398054
lea eax, [ebp - 0x30]
push eax
mov eax, 0x5443c6d2
add eax, 0xac01e992
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x37644c9
add dword [ebp - 0x30], 0x70fc248d
mov dword [ebp - 0x2c], 0xc14263f6
add dword [ebp - 0x2c], 0x8029fd7f
mov dword [ebp - 0x28], 0x17e57d89
add dword [ebp - 0x28], 0x4b89eee3
mov dword [ebp - 0x24], 0xf8c0921
sub dword [ebp - 0x24], 0xf8c0921
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x3d58f1ce
add eax, 0xc2ecbeb2
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x4e2ae
push 0
call eax
mov ecx, 0x5395e51
sub ecx, 0x53912ca
xor edi, edi
add edi, eax
mov esi, 0x476000
add esi, dword [ebp - 0x20]
mov ebx, 0x53396973
add ebx, 0xa5819b04
add dword [ebp - 8], 0x4768ecbe
mov edx, dword [esi]
xor edx, ebx
add dword [ebp - 0x18], edi
mov dword [edi], edx
xor dword [ebp - 0x18], 0xa6ae339e
add edi, 0x92b5aafe
sub edi, 0x92b5aafa
add esi, 0xa441cb5b
sub esi, 0xa441cb57
loop 0x452de6
add eax, 0xb37e06ca
sub eax, 0xb37ce5db
mov ebx, eax
add eax, 0xa0dd7c9e
add eax, 0x5f228367
mov ecx, 0x31e1f1de
sub ecx, 0x31a1f1de
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x407570
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x64b4f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x407631
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00523fd0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40761b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.00523fd0
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x5e4b20
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5e4b24
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x407631
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465678
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00523fd0
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.00407700
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0053f3e0
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x407691
cmp eax, 0x207
ja 0x407691
jne 0x407698
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4076a1
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00465678
mov esp, ebp
pop ebp
ret
Function at 0x408160
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00465aa0
mov eax, dword [0x64b4f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x408190
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465678
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.00523fd0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.00540745
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00465678
mov esp, ebp
pop ebp
ret
Function at 0x408220
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x64b4f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x408433
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408433
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408253
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x408433
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.00523fd0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00523fd0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x5e4bdc
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4082d4
test al, 1
je 0x4082d4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x408419
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40840d
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x408388
cmp word [ebp - 0x638], 0x2e
jne 0x408347
mov ax, word [ebp - 0x636]
test ax, ax
je 0x4083f2
cmp ax, 0x2e
jne 0x408347
cmp word [ebp - 0x634], 0
je 0x4083f2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00523fd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00408220
add esp, 4
jmp 0x4083f0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00523fd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4083df
test al, 1
je 0x4083df
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408310
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465678
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00465678
mov esp, ebp
pop ebp
ret
Function at 0x408450
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4084a8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4084a8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x408488
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4084a8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4084a3
test al, 0x10
je 0x4084a3
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4084a8
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x408f90
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408fbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.00428370
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408fb7
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x408fe5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408fa2
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret