joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8690
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.005dbaf5
xor ecx, ecx
test edi, edi
jle 0x4b86d7
mov esi, dword [esi + 0xc8]
xor edx, edx
test edx, edx
jl 0x4b871a
cmp ecx, dword [esi + 8]
jge 0x4b871a
mov ebx, dword [esi + 4]
mov ebx, dword [ebx + edx]
cmp dword [ebx + 0x4c0], eax
je 0x4b86df
inc ecx
add edx, 0x10
cmp ecx, edi
jl 0x4b86b8
pop edi
pop esi
mov al, 1
pop ebx
ret 4
cmp ecx, dword [esi + 8]
jge 0x4b871a
mov edx, dword [esi + 4]
shl ecx, 4
mov ecx, dword [ecx + edx]
cmp dword [ecx + 0x91c], 3
jne 0x4b86d7
cmp dword [ecx + 0x5c], 0
je 0x4b86d7
mov eax, dword [ecx + 0x54]
test eax, eax
jne 0x4b8706
lea eax, [ecx + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b86d7
pop edi
pop esi
xor al, al
pop ebx
ret 4
call fcn.005cfbb9
int3
Function at 0x4bbe90
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 0x64f8bc
push 0
push str.SoftwareDownloadManagerProxyPac
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bbf21
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 0x4bbed0
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 0x662094
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 0x4bbf30
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x6299d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
cmp dword [0x70ff90], 0
mov edi, ecx
je 0x4bc03f
mov eax, dword [edi + 8]
mov ecx, dword [0x70ff88]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4bbf98
test dl, dl
je 0x4bbf94
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4bbf98
add eax, 2
add ecx, 2
test dl, dl
jne 0x4bbf78
xor eax, eax
jmp 0x4bbf9d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bc03f
mov edx, dword [0x70ffac]
mov eax, edx
test edx, edx
jne 0x4bbfb6
mov eax, 0x70ffb0
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bbfc0
sub eax, esi
sar eax, 1
je 0x4bc03f
mov eax, edx
test edx, edx
jne 0x4bbfdc
mov eax, 0x70ffb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4bc03f
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.00406ea0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x10]
mov ecx, eax
test eax, eax
jne 0x4bc00b
lea ecx, [esp + 0x14]
mov eax, dword [0x70ffac]
test eax, eax
jne 0x4bc019
mov eax, 0x70ffb0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4bc02e
mov dword [edi + 0x1c], 1
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004011f0
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.005f85e7
add esp, 0x20
ret
Function at 0x4bc210
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x629b03
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x70a308]
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 0x4bc282
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4bc258
lea eax, [esi + 0x30]
lea edx, [eax + 2]
jmp 0x4bc260
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bc260
sub eax, edx
sar eax, 1
je 0x4bc282
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4bc27b
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x18], 0
lea ecx, [esi + 0x2c]
call fcn.004011f0
mov dword [esp + 0x18], 0xffffffff
mov ecx, esi
call fcn.004bc110
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4bc810
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x629be1
mov eax, dword fs:[0]
push eax
mov eax, 0x1430
call fcn.005f9ca0
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x142c], eax
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x1440]
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 + 0x1448], ebx
mov eax, dword [0x70f64c]
cmp eax, ebx
jne 0x4bc876
mov eax, 0x70f650
push ebx
push eax
push str._sproxy.pac
lea ecx, [esp + 0x30]
call fcn.00402190
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x4bc892
lea eax, [esp + 0x28]
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00402a50
add esp, 0xc
mov byte [esp + 0x1448], 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.00401960
mov byte [esp + 0x1448], 2
mov eax, dword [esp + 0x24]
mov ecx, eax
cmp eax, ebx
jne 0x4bc8dd
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4bc8f0
lea eax, [esp + 0x34]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4bc916
cmp dx, bx
je 0x4bc912
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4bc916
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4bc8f0
xor eax, eax
jmp 0x4bc91b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4bc92f
mov ecx, dword [esp + 0x10]
push ecx
push 0x64edec
lea edx, [edi + 4]
push edx
jmp 0x4bc93e
mov eax, dword [0x70f658]
push eax
push str._sproxy.pac
lea ecx, [edi + 4]
push ecx
call fcn.00402f60
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0xf003f
push ebx
push 0x64f8bc
push ebx
push str.SoftwareDownloadManagerProxyPac
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bc9ea
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 0x662094
push eax
mov dword [esp + 0x2c], 0x1400
call esi
test eax, eax
jne 0x4bc9b1
lea ecx, [esp + 0x3c]
push ecx
lea edx, [edi + 0xc]
push 0x64edec
push edx
call fcn.00402f60
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 0x4bc9df
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 + 0x1448], 1
lea ecx, [esp + 0x30]
call fcn.004011f0
mov byte [esp + 0x1448], bl
lea ecx, [esp + 0x10]
call fcn.00402550
mov dword [esp + 0x1448], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004011f0
mov ecx, dword [esp + 0x1440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x142c]
xor ecx, esp
call fcn.005f85e7
add esp, 0x143c
ret
Function at 0x4bcff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x629cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.004024e0
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.00402f60
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.00401960
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x10]
mov ecx, eax
cmp eax, ebx
jne 0x4bd079
lea ecx, [esp + 0x14]
mov eax, dword [0x70f64c]
cmp eax, ebx
jne 0x4bd087
mov eax, 0x70f650
push ebx
push ecx
push eax
push 0x64ed70
lea ecx, [esi + 0x2c]
call fcn.00402300
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x10]
call fcn.004011f0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402550
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.005f85e7
add esp, 0x20
ret 4

Function at 0x4bd130
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x629ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x70a308]
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.004024e0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push str.SoftwareDownloadManagerProxyPac_s
push ecx
call fcn.00402f60
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 0x64f8bc
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 0x4bd20a
mov eax, esi
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bd1d0
sub eax, edi
inc eax
push eax
push esi
push 0
push 0
push 0x662174
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push ebp
push str.EncPassword
push edx
call fcn.0059e650
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.004bcb80
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402550
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 0x4bd240
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x6299d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
cmp dword [0x70ff90], 0
mov ebx, ecx
je 0x4bd2b3
mov esi, dword [0x70ffac]
mov eax, esi
test esi, esi
jne 0x4bd28c
mov eax, 0x70ffb0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bd290
sub eax, edx
sar eax, 1
je 0x4bd2b3
mov eax, esi
test esi, esi
jne 0x4bd2ac
mov eax, 0x70ffb0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x30]
push eax
mov ecx, 0x70ff80
call fcn.004bcff0
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.00401960
mov dword [esp + 0x28], 0
mov eax, dword [0x70ffac]
mov ecx, eax
test eax, eax
jne 0x4bd2ff
mov ecx, 0x70ffb0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4bd30b
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 0x64edec
push 0x70ff88
call fcn.00402f60
add esp, 0xc
mov dword [0x70ff90], 1
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004011f0
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.005f85e7
add esp, 0x20
ret 4
Function at 0x4bef70
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x629e86
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
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 0x4befc0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 2], 0x5c
jne 0x4bf10a
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.00402190
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x4bf012
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 0x4bf0f6
jmp 0x4bf030
cmp esi, ebx
je 0x4bf0eb
lea eax, [esp + 0x5c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4bf040
sub eax, edx
sar eax, 1
mov edi, eax
xor esi, esi
cmp edi, ebx
jle 0x4bf085
jmp 0x4bf060
movzx eax, word [esp + esi*2 + 0x5c]
cmp ax, 0x2e
je 0x4bf085
push eax
call fcn.005fd870
add esp, 4
test eax, eax
jne 0x4bf080
cmp word [esp + esi*2 + 0x5c], 0x66
jne 0x4bf0d4
inc esi
cmp esi, edi
jl 0x4bf060
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 0x64ed70
lea ecx, [esp + 0x28]
call fcn.00402300
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4bf0bd
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x28c], bl
lea ecx, [esp + 0x18]
call fcn.004011f0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x4bf030
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.004011f0
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.005f85e7
add esp, 0x27c
ret
Function at 0x4bfe60
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x629fa6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x70a308]
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 0x4bfea7
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4bfea0
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x10]
call fcn.004011f0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.00402550
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4c0680
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x62a128
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x70a308]
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 0x4c0743
lea ecx, [ebp]
call fcn.0045a180
mov byte [ebp - 4], 1
push 0
lea eax, [ebp]
push eax
push edi
lea ecx, [ebx + 8]
call fcn.005cba30
test al, al
je 0x4c0734
cmp byte [ebp + 0x48], 0
je 0x4c0734
mov esi, dword [ebp + 0x98]
test esi, esi
mov eax, esi
jne 0x4c0705
lea eax, [ebp + 0x9c]
lea edx, [eax + 2]
jmp 0x4c0710
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c0710
sub eax, edx
sar eax, 1
je 0x4c0734
test esi, esi
mov eax, esi
jne 0x4c072d
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0045a2d0
inc edi
jmp 0x4c06c3
cmp dword [ebx + 0x41c], 0
je 0x4c0754
mov eax, dword [ebx + 0x41c]
jmp 0x4c075a
lea eax, [ebx + 0x420]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c0760
sub eax, edx
sar eax, 1
je 0x4c0791
cmp dword [ebx + 0x41c], 0
je 0x4c0782
mov eax, dword [ebx + 0x41c]
jmp 0x4c0788
lea eax, [ebx + 0x420]
push eax
call fcn.005fd504
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.005f85e7
add ebp, 0xcc
mov esp, ebp
pop ebp
ret
Function at 0x4c1a10
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x70a308]
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 [0x70f64c]
cmp eax, esi
jne 0x4c1a67
mov eax, 0x70f650
push esi
push eax
push str._sempty.html
lea ecx, [ebp - 0x3c]
call fcn.00402190
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x4c1a80
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c1b2c
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x4c1a9a
lea eax, [ebp - 0x38]
push 0x660218
push eax
call fcn.005fb2bd
add esp, 8
mov ebx, eax
cmp ebx, esi
je 0x4c1ae6
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 0x4c1ac3
sub eax, edx
push ebx
push eax
push 1
lea edx, [ebp - 0x30]
push edx
call fcn.005fb175
push ebx
call fcn.005faf97
add esp, 0x14
xor esi, esi
jmp 0x4c1b2c
lea ecx, [ebp - 0x40]
call fcn.004024e0
mov byte [ebp - 4], 2
call fcn.005fe035
mov eax, dword [eax]
push eax
push str.Gr_CreateEHTML:fopen_failed__errno_ld_n
lea ecx, [ebp - 0x40]
push ecx
call fcn.00402f60
add esp, 0xc
mov ecx, dword [0x70fbac]
cmp ecx, esi
je 0x4c1b20
push 1
mov edx, dword [ebp - 0x40]
push edx
call fcn.004b1ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402550
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x4c1b36
lea eax, [ebp - 0x38]
push esi
push eax
push 0x64edec
mov ecx, dword [ebp - 0x44]
call fcn.00402190
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004011f0
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.005f85e7
mov esp, ebp
pop ebp
ret
Function at 0x4c4150
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x62a5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0x64f8bc
push 0
push str.SoftwareDownloadManagerGrabberSts
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4c4206
lea ecx, [esp + 0xc]
call fcn.004024e0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.Gr_SetPID:RegCrKey_failed__err_ld_n
push edx
call fcn.00402f60
mov ecx, dword [0x70fbac]
add esp, 0xc
test ecx, ecx
je 0x4c41e4
mov eax, dword [esp + 0xc]
push 1
push eax
call fcn.004b1ac0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402550
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0
push str.maxProjectID
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c4242
mov eax, dword [esi + 0x4b0]
cmp eax, dword [esp + 8]
jle 0x4c424c
mov dword [esp + 8], eax
jmp 0x4c424c
mov ecx, dword [esi + 0x4b0]
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0xc]
push edx
push 4
push 0
push str.maxProjectID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret
Function at 0x4c62c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a7a3
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x70a308]
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 esi, ecx
mov dword [ebp - 0xec], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
xor edi, edi
mov dword [ebp - 0xf4], edi
cmp edi, dword [esi + 0xb0]
jge 0x4c6456
lea ecx, [ebp - 0xe8]
call fcn.0045a180
mov byte [ebp - 4], 1
push ebx
lea eax, [ebp - 0xe8]
push eax
push edi
lea ecx, [esi + 8]
call fcn.005cba30
test al, al
jne 0x4c6347
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xe8]
call fcn.0045a2d0
inc edi
jmp 0x4c6300
mov esi, dword [ebp - 0x50]
cmp esi, ebx
mov eax, esi
jne 0x4c6353
lea eax, [ebp - 0x4c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c6356
sub eax, edx
sar eax, 1
je 0x4c6377
cmp esi, ebx
mov eax, esi
jne 0x4c6370
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x74]
cmp eax, ebx
jne 0x4c6381
lea eax, [ebp - 0x70]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c6384
sub eax, edx
sar eax, 1
je 0x4c6429
cmp dword [ebp - 0xd0], ebx
jne 0x4c6429
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor ecx, ecx
mov word [ebp - 0x1c], cx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x74]
cmp eax, ebx
jne 0x4c63bf
lea eax, [ebp - 0x70]
push ebx
push eax
push 0x64edec
lea ecx, [ebp - 0x20]
call fcn.00402190
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4c63d8
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4c63e9
lea eax, [ebp - 0x1c]
push 0x5c
push eax
call fcn.005f80fb
add esp, 8
cmp eax, ebx
je 0x4c641d
xor edx, edx
mov word [eax], dx
push 0x662af8
call fcn.005fb393
add esp, 4
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4c6414
lea eax, [ebp - 0x1c]
push eax
call fcn.005fd504
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004011f0
lea eax, [ebp - 0xe8]
push eax
push edi
mov ecx, dword [ebp - 0xec]
call fcn.004c6040
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xe8]
call fcn.0045a2d0
mov esi, dword [ebp - 0xec]
inc edi
jmp 0x4c6300
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.005f85e7
mov esp, ebp
pop ebp
ret