joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x625758
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
xor esi, esi
xor ecx, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
mov word [esp + 0x10], cx
mov dword [esp + 0x24], esi
mov edx, dword [0x70f730]
push edx
push eax
lea ecx, [esp + 0x14]
call fcn.00401960
mov eax, dword [esp + 0xc]
cmp eax, esi
jne 0x4a9bca
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_AppendMenuW]
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004011f0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.005f85e7
add esp, 0x1c
ret

Function at 0x4aa060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x637ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0xc], eax
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
xor ecx, ecx
push ecx
mov word [esp + 0x10], cx
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call fcn.00401960
mov dword [esp + 0x20], 0
mov eax, dword [esp + 8]
test eax, eax
jne 0x4aa0cd
lea eax, [esp + 0xc]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
push edi
call fcn.0040cc70
add esp, 0x10
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.004011f0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.005f85e7
add esp, 0x1c
ret
Function at 0x4acf50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6285b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
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 esi, dword [esp + 0x30]
mov eax, dword [esi + 4]
push 6
push str._file_
push eax
call fcn.005fd020
add esp, 0xc
test eax, eax
jne 0x4ad195
push esi
call fcn.00501aa0
mov eax, dword [esi + 0xc]
add esp, 4
test eax, eax
je 0x4ad195
cmp dword [esi + 0x10], 0
je 0x4ad195
push str.anonymous
push eax
call fcn.005fa111
add esp, 8
test eax, eax
je 0x4ad195
lea ecx, [esp + 0x18]
call fcn.004024e0
mov dword [esp + 0x28], 0
mov ecx, dword [esi + 4]
add ecx, 6
push ecx
lea edx, [esp + 0x1c]
push 0x64edec
push edx
call fcn.00402f60
mov ecx, dword [esp + 0x24]
mov eax, ecx
add esp, 0xc
mov ebp, ecx
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4ad000
sub eax, edi
push 0x2f
push ecx
mov edi, eax
mov bl, 1
call fcn.005f9b50
add esp, 8
mov dword [esp + 0x1c], eax
test edi, edi
je 0x4ad040
cmp byte [edi + ebp - 1], 0x2f
jne 0x4ad02c
mov byte [edi + ebp - 1], 0
push 0x2f
push ebp
call fcn.005f9b50
add esp, 8
test eax, eax
je 0x4ad040
mov byte [eax], 0x2d
jmp 0x4ad057
cmp dword [esp + 0x1c], 0
je 0x4ad059
mov eax, dword [esi + 8]
push eax
call fcn.004a8440
add esp, 4
test al, al
jne 0x4ad059
xor bl, bl
lea ecx, [esp + 0x30]
call fcn.004024e0
mov byte [esp + 0x28], 1
test bl, bl
je 0x4ad098
test edi, edi
je 0x4ad088
mov ecx, dword [esi + 8]
push ecx
push ebp
lea edx, [esp + 0x38]
push str._s__s
push edx
call fcn.00402f60
add esp, 0x10
jmp 0x4ad0ab
mov eax, dword [esi + 8]
push eax
push 0x64edec
lea ecx, [esp + 0x38]
push ecx
jmp 0x4ad0a3
push ebp
push 0x64edec
lea edx, [esp + 0x38]
push edx
call fcn.00402f60
add esp, 0xc
push str.api.filesonic.com
mov ecx, esi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x50
call fcn.0044e240
push 0x653d00
mov ecx, esi
call fcn.0044e2b0
lea ecx, [esp + 0x14]
call fcn.004024e0
mov byte [esp + 0x28], 2
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.link_methodgetDownloadLinkids_su_sredirecttrue
push edx
call fcn.00402f60
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esi + 0x180]
push str.p_s
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x30]
add esp, 0x1c
push 0
push edx
mov ecx, esi
mov byte [esi + 0x17c], 1
call fcn.00425db0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esi + 0xc8]
push str.http:__api.filesonic.com__s
push ecx
call fcn.00402f60
mov edx, dword [esi + 0x10]
push edx
push str.p_s
add esi, 0x138
push esi
call fcn.00402f60
add esp, 0x18
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x14]
call fcn.00402550
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x30]
call fcn.00402550
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402550
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4b1ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x628bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x80], 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 edi, dword [ebp + 0x8c]
mov dword [ebp - 4], 0
cmp byte [esi + 0x20c], 0
jne 0x4b1b5d
mov eax, dword [0x70f64c]
test eax, eax
jne 0x4b1b22
mov eax, 0x70f650
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b1b25
sub eax, edx
sar eax, 1
je 0x4b1b5d
mov byte [esi + 0x20c], 1
mov eax, dword [0x70f64c]
test eax, eax
jne 0x4b1b4b
mov eax, 0x70f650
push eax
push str._sGlobalErrors.log
lea eax, [esi + 4]
push eax
call fcn.0040fac0
add esp, 0xc
push 0x660218
add esi, 4
push esi
call fcn.005fb2bd
add esp, 8
mov esi, eax
test esi, esi
je 0x4b1c09
push 0
push esi
call fcn.005fec82
add esp, 8
cmp dword [ebp + 0x90], 0
je 0x4b1be1
lea ecx, [ebp - 0x1c]
push ecx
call fcn.005fbfd3
lea edx, [ebp - 0x1c]
push edx
call fcn.005fec26
lea ecx, [eax + 0x14]
push ecx
movzx edx, word [ebp - 0x18]
push edx
add eax, 4
push eax
mov eax, dword [0x70f7ac]
push eax
push str._n_s__Time:__.15s._hu__s
lea ecx, [ebp]
push ecx
call fcn.005fb4cb
add esp, 0x20
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b1bc8
sub eax, edx
push esi
push eax
push 1
lea edx, [ebp]
push edx
call fcn.005fb175
add esp, 0x10
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b1be6
sub eax, edx
push esi
push eax
push 1
push edi
call fcn.005fb175
push esi
call fcn.005faf97
add esp, 0x14
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 + 0x80]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x84
mov esp, ebp
pop ebp
ret 8

Function at 0x4b1cc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x625758
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
xor esi, esi
xor ecx, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
mov word [esp + 0x10], cx
mov dword [esp + 0x24], esi
mov edx, dword [0x70f730]
push edx
push eax
lea ecx, [esp + 0x14]
call fcn.00401960
mov eax, dword [esp + 0xc]
cmp eax, esi
jne 0x4b1d2a
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x40]
push eax
push ecx
push edi
call fcn.0040cce0
add esp, 0x10
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004011f0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.005f85e7
add esp, 0x1c
ret
Function at 0x4b2fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x628edb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
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 edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor eax, eax
mov word [ebp - 0x1c], ax
mov byte [ebp - 4], 1
mov eax, dword [0x70f64c]
cmp eax, ebx
jne 0x4b3006
mov eax, 0x70f650
push ebx
push eax
push str._sGrabberProjects_
lea ecx, [ebp - 0x20]
call fcn.00402190
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4b301f
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b3103
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4b3039
lea eax, [ebp - 0x1c]
push 0x5c
add eax, 6
push eax
call fcn.005fa163
add esp, 8
mov esi, eax
lea esp, [esp]
cmp esi, ebx
je 0x4b3103
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4b3062
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402160
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov ecx, eax
jne 0x4b307b
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4b3085
lea eax, [ebp - 0x1c]
mov edx, esi
sub edx, eax
sar edx, 1
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x4b309b
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0049bfe0
add esp, 8
test eax, eax
jne 0x4b30e2
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x4b30b3
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0049c1c0
add esp, 8
test eax, eax
jne 0x4b30e2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004011f0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov eax, 0x7546
jmp 0x4b3172
push 0x5c
add esi, 2
push esi
call fcn.005fa163
add esp, 8
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004011f0
jmp 0x4b3050
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4b310d
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x64edec
lea ecx, [edi + 8]
call fcn.00402190
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x4b3172
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 4
Function at 0x4b3190
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x628f39
mov eax, dword fs:[0]
push eax
sub esp, 0x284
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 - 0x280], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
xor eax, eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
cmp dword [esi + 8], ebx
je 0x4b31e8
mov eax, dword [esi + 8]
jmp 0x4b31eb
lea eax, [esi + 0xc]
push ebx
push eax
push str._s.gsd
lea ecx, [ebp - 0x2c]
call fcn.00402190
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x4b3204
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x27c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x284], eax
cmp eax, 0xffffffff
jne 0x4b3245
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004011f0
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
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor edx, edx
mov word [ebp - 0x1c], dx
mov byte [ebp - 4], 2
cmp dword [esi + 8], ebx
je 0x4b325f
mov eax, dword [esi + 8]
jmp 0x4b3262
lea eax, [esi + 0xc]
push ebx
lea ecx, [ebp - 0x250]
push ecx
push eax
push 0x64ed70
lea ecx, [ebp - 0x20]
call fcn.00402300
push 0x58
call fcn.005cfa6c
add esp, 4
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x4b3299
mov ecx, eax
call fcn.005151b0
jmp 0x4b329b
xor eax, eax
mov byte [ebp - 4], 2
mov edi, eax
mov dword [ebp - 0x28c], edi
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
jne 0x4b32b1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00515290
xor bl, bl
xor esi, esi
mov dword [ebp - 0x288], esi
cmp esi, dword [0x70f684]
jge 0x4b32e0
push esi
mov ecx, 0x70f67c
call fcn.0042eef0
mov edx, dword [eax]
cmp edx, dword [edi + 0x40]
je 0x4b32e4
inc esi
jmp 0x4b32bd
test bl, bl
je 0x4b3315
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b32ee
lea eax, [ebp - 0x1c]
push 0
push eax
push 0x64edec
lea ecx, [edi + 0x44]
call fcn.00402190
lea eax, [ebp - 0x28c]
push eax
mov ecx, dword [ebp - 0x280]
add ecx, 0x14
call fcn.005079f0
jmp 0x4b3323
test edi, edi
je 0x4b3323
mov edx, dword [edi]
push 1
mov ecx, edi
mov eax, dword [edx]
call eax
lea ecx, [ebp - 0x27c]
push ecx
mov esi, dword [ebp - 0x284]
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b3366
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004011f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
jmp 0x4b3229
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov esi, dword [ebp - 0x280]
xor ebx, ebx
jmp 0x4b3245
Function at 0x4b33c0
Capabilities:
Delete file

Disassembly:
mov edx, dword [ecx + 0x1c]
xor eax, eax
test edx, edx
jle 0x4b33ed
push edi
mov edi, dword [esp + 8]
add ecx, 0x14
push esi
test eax, eax
jl 0x4b3427
cmp eax, dword [ecx + 8]
jge 0x4b3427
mov esi, dword [ecx + 4]
mov esi, dword [esi + eax*4]
cmp dword [esi + 0x40], edi
je 0x4b33f0
inc eax
cmp eax, edx
jl 0x4b33d2
pop esi
pop edi
ret 4
cmp eax, dword [ecx + 8]
jge 0x4b3427
mov edx, dword [ecx + 4]
push 1
push eax
mov dword [edx + eax*4], 0
call fcn.005077c0
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4b3411
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
pop esi
pop edi
ret 4
call fcn.005cfbb9
int3

Function at 0x4b3430
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x628f78
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, ecx
xor ecx, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov word [esp + 0xc], cx
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 8]
mov esi, ecx
test ecx, ecx
jne 0x4b3488
lea esi, [eax + 0xc]
mov eax, dword [esp + 0x68]
push 0
push 0xa
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.005fb352
add esp, 0xc
push eax
push esi
push str._sproject_s.gsd
lea ecx, [esp + 0x18]
call fcn.00402300
mov eax, dword [esp + 8]
test eax, eax
jne 0x4b34ba
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 8]
call fcn.004011f0
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.005f85e7
add esp, 0x5c
ret 4
Function at 0x4b4560
Capabilities:
Get disk information via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x631a28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0x14]
xor edi, edi
call fcn.004024e0
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push str.._s:
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x20]
add esp, 0xc
push edi
push edi
push 3
push edi
push 3
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b461a
push edi
lea eax, [esp + 0x38]
push eax
push 0xc
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
push 0x2d1080
push esi
mov dword [esp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, edi
je 0x4b461a
mov edx, dword [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.004b4360
test eax, eax
jne 0x4b4615
mov eax, dword [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.004b3ef0
test eax, eax
je 0x4b461a
mov edi, 1
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402550
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x4b4650
Capabilities:
Get common file path

Disassembly:
sub esp, 0x19c
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push ebp
push esi
push 0x94
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
mov ebp, ecx
call fcn.005f8cb0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4b46f1
cmp dword [esp + 0x1c], 2
jne 0x4b46f1
push 0x6513c0
call fcn.00445b00
mov esi, eax
add esp, 4
test esi, esi
je 0x4b46f1
push edi
push str.SHGetFolderPathA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4b46e5
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0xa4]
push edx
push ebx
push ebx
push 5
push ebx
call edi
test eax, eax
jne 0x4b46df
lea ebx, [eax + 1]
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
test ebx, ebx
jne 0x4b4722
push 0x104
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4b4722
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.005f85e7
add esp, 0x19c
ret
lea ecx, [esp + 0xa0]
push 0x652da0
push ecx
call fcn.005f9c10
add esp, 8
test eax, eax
je 0x4b4708
lea edx, [esp + 0xa0]
push edx
mov ecx, ebp
mov byte [eax], 0
call fcn.004b4560
mov ecx, dword [esp + 0x1a4]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005f85e7
add esp, 0x19c
ret
Function at 0x4b4840
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x2f0]
sub esp, 0x2f0
push 0xffffffffffffffff
push 0x629180
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x2ec], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
push 0x94
push ebx
lea eax, [ebp]
push eax
call fcn.005f8cb0
add esp, 0xc
mov dword [ebp], 0x94
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4b490b
cmp dword [ebp + 0x10], 2
jne 0x4b490b
push 0x6513c0
call fcn.00445b00
add esp, 4
mov edi, eax
cmp edi, ebx
je 0x4b490b
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4b4900
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp + 0x1e8]
push edx
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x4b48fa
mov ebx, 1
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x4b492c
push 0x104
lea eax, [ebp + 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4b49a8
mov dword [ebp - 0x14], 1
push 0x652da0
lea ecx, [ebp + 0x1e8]
push ecx
call fcn.005f9c10
add esp, 8
test eax, eax
je 0x4b49a8
add eax, 2
mov byte [eax], 0
push 0x50
lea edx, [ebp + 0x198]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x104
lea eax, [ebp + 0x94]
push eax
lea ecx, [ebp + 0x1e8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4b49a8
mov edx, dword [ebp - 0x18]
push edx
push 0x65a800
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
call fcn.00402f60
add esp, 0xc
mov eax, 1
jmp 0x4b49aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2ec]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x2f0
mov esp, ebp
pop ebp
ret
Function at 0x4b49d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6291bb
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
mov eax, dword [0x70a308]
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 0x64f8bc
push 0
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4b4a7a
lea ecx, [esp + 0x14]
call fcn.004b1950
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.004b1ac0
mov dword [esp + 0x230], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004b1ab0
jmp 0x4b4aa4
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.005f85e7
add esp, 0x22c
ret 4

Function at 0x4b4ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x6291fb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov eax, dword [0x70a308]
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 0x64f8bc
push ebx
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4b4b6d
lea ecx, [esp + 0x18]
call fcn.004b1950
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.004b1ac0
mov dword [esp + 0x234], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004b1ab0
xor al, al
jmp 0x4b4bab
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 0x4b4b9e
cmp dword [esp + 0xc], 0xa
jne 0x4b4b9e
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.005f85e7
add esp, 0x230
ret
Function at 0x4b4bd0
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x62923b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [0x70a308]
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 0x64f8bc
push 0
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4b4c73
lea ecx, [esp + 0xc]
call fcn.004b1950
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.004b1ac0
mov dword [esp + 0x228], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004b1ab0
jmp 0x4b4c8e
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.005f85e7
add esp, 0x228
ret