joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcf90
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64694b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, dword [esp + 0x238]
lea eax, [esp + 0x10]
push eax
mov dword [ecx + 0x18], esi
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0x66e97c
push 0
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4bd03a
lea ecx, [esp + 0x14]
call fcn.004b9e60
mov dword [esp + 0x230], 0
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::SetVisiblity__._r_n
lea ecx, [esp + 0x1c]
call fcn.004b9fd0
mov dword [esp + 0x230], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004b9fc0
jmp 0x4bd064
mov eax, dword [esp + 8]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push str.Visiblity
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.006157d3
add esp, 0x22c
ret 4

Function at 0x4bd090
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x64698b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x66e97c
push ebx
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4bd12d
lea ecx, [esp + 0x18]
call fcn.004b9e60
mov dword [esp + 0x234], ebx
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::CheckQAU__._r_n
lea ecx, [esp + 0x20]
call fcn.004b9fd0
mov dword [esp + 0x234], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004b9fc0
xor al, al
jmp 0x4bd16b
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push str.QAUWA
push ecx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4bd15e
cmp dword [esp + 0xc], 0xa
jne 0x4bd15e
mov bl, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.006157d3
add esp, 0x230
ret
Function at 0x4bd190
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x6469cb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
mov byte [ecx + 0x14], 0
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0x66e97c
push 0
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4bd233
lea ecx, [esp + 0xc]
call fcn.004b9e60
mov dword [esp + 0x228], 0
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::DeleteQAU__._r_n
lea ecx, [esp + 0x14]
call fcn.004b9fd0
mov dword [esp + 0x228], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004b9fc0
jmp 0x4bd24e
mov edx, dword [esp + 4]
push str.QAUWA
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.006157d3
add esp, 0x228
ret
Function at 0x4c0d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0xc8]
push edi
mov edi, dword [eax + 8]
push ecx
mov ecx, esi
call fcn.005f5c7d
xor ecx, ecx
test edi, edi
jle 0x4c0db7
mov esi, dword [esi + 0xc8]
xor edx, edx
test edx, edx
jl 0x4c0dfa
cmp ecx, dword [esi + 8]
jge 0x4c0dfa
mov ebx, dword [esi + 4]
mov ebx, dword [ebx + edx]
cmp dword [ebx + 0x4e8], eax
je 0x4c0dbf
inc ecx
add edx, 0x10
cmp ecx, edi
jl 0x4c0d98
pop edi
pop esi
mov al, 1
pop ebx
ret 4
cmp ecx, dword [esi + 8]
jge 0x4c0dfa
mov edx, dword [esi + 4]
shl ecx, 4
mov ecx, dword [ecx + edx]
cmp dword [ecx + 0x944], 3
jne 0x4c0db7
cmp dword [ecx + 0x5c], 0
je 0x4c0db7
mov eax, dword [ecx + 0x54]
test eax, eax
jne 0x4c0de6
lea eax, [ecx + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c0db7
pop edi
pop esi
xor al, al
pop ebx
ret 4
call fcn.005e9bc5
int3
Function at 0x4c48d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 0xc]
push eax
mov edi, ecx
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0x66e97c
push 0
push str.SoftwareDownloadManagerProxyPac
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4c4961
mov ecx, dword [edi + 0xc]
mov eax, ecx
push esi
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c4910
mov edx, dword [esp + 8]
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push ecx
push 1
push 0
push 0x681574
push edx
call esi
mov edx, dword [esp + 8]
xor eax, eax
cmp dword [edi + 0x10], eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
setne al
push 0
push str.bUse
push edx
mov dword [esp + 0x24], eax
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0xc
ret

Function at 0x4c4970
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x652358
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
cmp dword [0x7535f0], 0
mov edi, ecx
je 0x4c4a7f
mov eax, dword [edi + 8]
mov ecx, dword [0x7535e8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c49d8
test dl, dl
je 0x4c49d4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c49d8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c49b8
xor eax, eax
jmp 0x4c49dd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4c4a7f
mov edx, dword [0x75360c]
mov eax, edx
test edx, edx
jne 0x4c49f6
mov eax, 0x753610
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c4a00
sub eax, esi
sar eax, 1
je 0x4c4a7f
mov eax, edx
test edx, edx
jne 0x4c4a1c
mov eax, 0x753610
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c4a7f
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.00406f90
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x10]
mov ecx, eax
test eax, eax
jne 0x4c4a4b
lea ecx, [esp + 0x14]
mov eax, dword [0x75360c]
test eax, eax
jne 0x4c4a59
mov eax, 0x753610
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4c4a6e
mov dword [edi + 0x1c], 1
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00401210
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.006157d3
add esp, 0x20
ret
Function at 0x4c4c50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x647313
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CLatestPersonalProxyScript.0
mov dword [esp + 0x18], 1
cmp dword [esi + 0x10], 0
je 0x4c4cc2
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4c4c98
lea eax, [esi + 0x30]
lea edx, [eax + 2]
jmp 0x4c4ca0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c4ca0
sub eax, edx
sar eax, 1
je 0x4c4cc2
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4c4cbb
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x18], 0
lea ecx, [esi + 0x2c]
call fcn.00401210
mov dword [esp + 0x18], 0xffffffff
mov ecx, esi
call fcn.004c4b50
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4c5250
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x6473f1
mov eax, dword fs:[0]
push eax
mov eax, 0x2830
call fcn.00616f00
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x282c], eax
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x2840]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov edi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], ax
mov dword [esp + 0x2848], ebx
mov eax, dword [0x752c1c]
cmp eax, ebx
jne 0x4c52b6
mov eax, 0x752c20
push ebx
push eax
push str._sproxy.pac
lea ecx, [esp + 0x30]
call fcn.004021b0
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x4c52d2
lea eax, [esp + 0x28]
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00402a70
add esp, 0xc
mov byte [esp + 0x2848], 1
mov eax, dword [esp + 0x10]
push ebx
xor edx, edx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov word [esp + 0x3c], dx
call fcn.00401980
mov byte [esp + 0x2848], 2
mov eax, dword [esp + 0x24]
mov ecx, eax
cmp eax, ebx
jne 0x4c531d
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4c5330
lea eax, [esp + 0x34]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c5356
cmp dx, bx
je 0x4c5352
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c5356
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4c5330
xor eax, eax
jmp 0x4c535b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c536f
mov ecx, dword [esp + 0x10]
push ecx
push 0x66dea8
lea edx, [edi + 4]
push edx
jmp 0x4c537e
mov eax, dword [0x752c28]
push eax
push str._sproxy.pac
lea ecx, [edi + 4]
push ecx
call fcn.00402f70
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0xf003f
push ebx
push 0x66e97c
push ebx
push str.SoftwareDownloadManagerProxyPac
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4c542a
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
push ebx
push ebx
push 0x681574
push eax
mov dword [esp + 0x2c], 0x2800
call esi
test eax, eax
jne 0x4c53f1
lea ecx, [esp + 0x3c]
push ecx
lea edx, [edi + 0xc]
push 0x66dea8
push edx
call fcn.00402f70
add esp, 0xc
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push str.bUse
push edx
mov dword [esp + 0x2c], 4
call esi
test eax, eax
jne 0x4c541f
cmp dword [esp + 0x1c], ebx
setne al
mov dword [edi + 0x10], eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x2848], 1
lea ecx, [esp + 0x30]
call fcn.00401210
mov byte [esp + 0x2848], bl
lea ecx, [esp + 0x10]
call fcn.00402570
mov dword [esp + 0x2848], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00401210
mov ecx, dword [esp + 0x2840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x282c]
xor ecx, esp
call fcn.006157d3
add esp, 0x283c
ret
Function at 0x4c5a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x63af90
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00402500
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x10]
push str.lt_p_proxy_ld.pac
push ecx
call fcn.00402f70
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
xor edx, edx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], dx
call fcn.00401980
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x10]
mov ecx, eax
cmp eax, ebx
jne 0x4c5aa9
lea ecx, [esp + 0x14]
mov eax, dword [0x752c1c]
cmp eax, ebx
jne 0x4c5ab7
mov eax, 0x752c20
push ebx
push ecx
push eax
push 0x66dde0
lea ecx, [esi + 0x2c]
call fcn.00402320
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x10]
call fcn.00401210
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.006157d3
add esp, 0x20
ret 4

Function at 0x4c5b60
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x637e08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.00402500
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push str.SoftwareDownloadManagerProxyPac_s
push ecx
call fcn.00402f70
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0x66e97c
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
test edx, edx
je 0x4c5c3a
mov eax, esi
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c5c00
sub eax, edi
inc eax
push eax
push esi
push 0
push 0
push 0x681654
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push ebp
push str.EncPassword
push edx
call fcn.005afbd0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
push ebp
push esi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004c55c0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0xc
Function at 0x4c5c70
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x652358
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
cmp dword [0x7535f0], 0
mov ebx, ecx
je 0x4c5ce3
mov esi, dword [0x75360c]
mov eax, esi
test esi, esi
jne 0x4c5cbc
mov eax, 0x753610
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c5cc0
sub eax, edx
sar eax, 1
je 0x4c5ce3
mov eax, esi
test esi, esi
jne 0x4c5cdc
mov eax, 0x753610
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x30]
push eax
mov ecx, 0x7535e0
call fcn.004c5a20
mov eax, dword [ebx + 4]
xor ecx, ecx
push ecx
mov word [esp + 0x18], cx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
call fcn.00401980
mov dword [esp + 0x28], 0
mov eax, dword [0x75360c]
mov ecx, eax
test eax, eax
jne 0x4c5d2f
mov ecx, 0x753610
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4c5d3b
lea eax, [esp + 0x14]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebx + 8]
push edx
push 0x66dea8
push 0x7535e8
call fcn.00402f70
add esp, 0xc
mov dword [0x7535f0], 1
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00401210
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.006157d3
add esp, 0x20
ret 4
Function at 0x4c77d0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x647626
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x294]
mov eax, ebp
lea edx, [eax + 2]
xor ebx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c7820
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 2], 0x5c
jne 0x4c796a
xor eax, eax
mov esi, 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], ax
mov dword [esp + 0x28c], ebx
push ebx
push ebp
push str._sf
lea ecx, [esp + 0x30]
call fcn.004021b0
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x4c7872
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4c7956
jmp 0x4c7890
cmp esi, ebx
je 0x4c794b
lea eax, [esp + 0x5c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c78a0
sub eax, edx
sar eax, 1
mov edi, eax
xor esi, esi
cmp edi, ebx
jle 0x4c78e5
jmp 0x4c78c0
movzx eax, word [esp + esi*2 + 0x5c]
cmp ax, 0x2e
je 0x4c78e5
push eax
call fcn.0061a820
add esp, 4
test eax, eax
jne 0x4c78e0
cmp word [esp + esi*2 + 0x5c], 0x66
jne 0x4c7934
inc esi
cmp esi, edi
jl 0x4c78c0
xor edx, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], dx
mov byte [esp + 0x28c], 1
push ebx
lea eax, [esp + 0x60]
push eax
push ebp
push 0x66dde0
lea ecx, [esp + 0x28]
call fcn.00402320
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4c791d
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x28c], bl
lea ecx, [esp + 0x18]
call fcn.00401210
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x4c7890
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x28c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00401210
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.006157d3
add esp, 0x27c
ret
Function at 0x4c8660
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x647746
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 1
cmp byte [esi + 0x26], 0
je 0x4c86a7
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4c86a0
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x10]
call fcn.00401210
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.00402570
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4c8e80
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x647848
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebx + 0xb0]
jge 0x4c8f43
lea ecx, [ebp]
call fcn.0045d970
mov byte [ebp - 4], 1
push 0
lea eax, [ebp]
push eax
push edi
lea ecx, [ebx + 8]
call fcn.005df130
test al, al
je 0x4c8f34
cmp byte [ebp + 0x48], 0
je 0x4c8f34
mov esi, dword [ebp + 0x98]
test esi, esi
mov eax, esi
jne 0x4c8f05
lea eax, [ebp + 0x9c]
lea edx, [eax + 2]
jmp 0x4c8f10
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c8f10
sub eax, edx
sar eax, 1
je 0x4c8f34
test esi, esi
mov eax, esi
jne 0x4c8f2d
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0045dac0
inc edi
jmp 0x4c8ec3
cmp dword [ebx + 0x41c], 0
je 0x4c8f54
mov eax, dword [ebx + 0x41c]
jmp 0x4c8f5a
lea eax, [ebx + 0x420]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c8f60
sub eax, edx
sar eax, 1
je 0x4c8f91
cmp dword [ebx + 0x41c], 0
je 0x4c8f82
mov eax, dword [ebx + 0x41c]
jmp 0x4c8f88
lea eax, [ebx + 0x420]
push eax
call fcn.0061a4b4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.006157d3
add ebp, 0xcc
mov esp, ebp
pop ebp
ret
Function at 0x4ca1b0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647a00
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
xor ecx, ecx
mov word [ebp - 0x38], cx
mov byte [ebp - 4], 1
mov eax, dword [0x752c1c]
cmp eax, esi
jne 0x4ca207
mov eax, 0x752c20
push esi
push eax
push str._sempty.html
lea ecx, [ebp - 0x3c]
call fcn.004021b0
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x4ca220
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ca2cc
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x4ca23a
lea eax, [ebp - 0x38]
push 0x67f6e0
push eax
call fcn.0061849d
add esp, 8
mov ebx, eax
cmp ebx, esi
je 0x4ca286
mov ecx, 7
mov esi, str._HTML__BODY____BODY___HTML_
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ca263
sub eax, edx
push ebx
push eax
push 1
lea edx, [ebp - 0x30]
push edx
call fcn.00618355
push ebx
call fcn.00618177
add esp, 0x14
xor esi, esi
jmp 0x4ca2cc
lea ecx, [ebp - 0x40]
call fcn.00402500
mov byte [ebp - 4], 2
call fcn.0061afe4
mov eax, dword [eax]
push eax
push str.Gr_CreateEHTML:fopen_failed__errno_ld_n
lea ecx, [ebp - 0x40]
push ecx
call fcn.00402f70
add esp, 0xc
mov ecx, dword [0x7531f8]
cmp ecx, esi
je 0x4ca2c0
push 1
mov edx, dword [ebp - 0x40]
push edx
call fcn.004b9fd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402570
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x4ca2d6
lea eax, [ebp - 0x38]
push esi
push eax
push 0x66dea8
mov ecx, dword [ebp - 0x44]
call fcn.004021b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006157d3
mov esp, ebp
pop ebp
ret