joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afa8b
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edx
push 0x10
pop edx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x11c], ecx
cmp edi, edx
je 0x4af9a2
cmp edi, 0xc
je 0x4af9a2
cmp edi, 8
cmovne edi, edx
mov dword [ebp + 0xc], edi
mov edx, dword [ebp + 8]
xor ebx, ebx
mov dword [ecx], edi
mov esi, ebx
lea ecx, [eax - 8]
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
test ecx, ecx
js 0x4afa38
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp - 0x114], eax
mov edi, eax
shl eax, 3
mov dword [ebp - 0x10c], eax
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + esi*4 - 0x104], ecx
movzx ecx, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 7]
shl eax, 0x18
add edx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x100], ecx
add esi, 2
dec edi
jne 0x4af9d5
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x110], esi
sub eax, dword [ebp - 0x10c]
je 0x4afaae
mov eax, dword [ebp - 0x108]
mov ecx, ebx
and eax, 7
mov esi, ebx
add edx, eax
dec eax
cmp eax, 7
ja case.default.0x4afa55
jmp dword [eax*4 + 0x4afb92]
dec edx
movzx ecx, byte [edx]
shl ecx, 0x18
dec edx
movzx eax, byte [edx]
shl eax, 0x10
or ecx, eax
dec edx
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
dec edx
movzx eax, byte [edx]
or ecx, eax
dec edx
movzx esi, byte [edx]
shl esi, 0x18
dec edx
movzx eax, byte [edx]
shl eax, 0x10
or esi, eax
dec edx
movzx eax, byte [edx]
shl eax, 8
or esi, eax
movzx eax, byte [edx - 1]
or esi, eax
mov eax, dword [ebp - 0x110]
mov dword [ebp + eax*4 - 0x104], esi
mov dword [ebp + eax*4 - 0x100], ecx
mov eax, dword [ebp - 0x108]
lea edi, [edi*2 + 2]
add eax, 3
xor ecx, ecx
cdq
inc ecx
and edx, 3
lea esi, [edx + eax]
mov edx, dword [ebp - 0x11c]
sar esi, 2
mov dword [edx + 4], 0xb7e15163
cmp edi, ecx
jle 0x4afaed
mov eax, dword [edx + ecx*4]
sub eax, 0x61c88647
mov dword [edx + ecx*4 + 4], eax
inc ecx
cmp ecx, edi
jl 0x4afadc
cmp edi, esi
mov dword [ebp - 0x108], ebx
mov eax, esi
mov ecx, ebx
cmovg eax, edi
imul eax, eax, 3
mov dword [ebp - 0x10c], eax
mov eax, ebx
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x10c], eax
jle 0x4afb7f
add ecx, dword [ebp - 0x108]
add ecx, dword [edx + eax*4 + 4]
rol ecx, 3
mov dword [edx + eax*4 + 4], ecx
mov eax, dword [ebp + ebx*4 - 0x104]
add eax, dword [ebp - 0x108]
mov dword [ebp - 0x114], ecx
add ecx, dword [ebp - 0x108]
add eax, dword [ebp - 0x114]
and ecx, 0x1f
rol eax, cl
xor ecx, ecx
mov dword [ebp + ebx*4 - 0x104], eax
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x110]
inc eax
cmp eax, edi
cmovge eax, ecx
inc ebx
cmp ebx, esi
mov dword [ebp - 0x110], eax
cmovge ebx, ecx
dec dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x114]
jne 0x4afb15
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x4afa94
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edx
push 0x10
pop edx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x11c], ecx
cmp edi, edx
je 0x4af9a2
cmp edi, 0xc
je 0x4af9a2
cmp edi, 8
cmovne edi, edx
mov dword [ebp + 0xc], edi
mov edx, dword [ebp + 8]
xor ebx, ebx
mov dword [ecx], edi
mov esi, ebx
lea ecx, [eax - 8]
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
test ecx, ecx
js 0x4afa38
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp - 0x114], eax
mov edi, eax
shl eax, 3
mov dword [ebp - 0x10c], eax
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + esi*4 - 0x104], ecx
movzx ecx, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 7]
shl eax, 0x18
add edx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x100], ecx
add esi, 2
dec edi
jne 0x4af9d5
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x110], esi
sub eax, dword [ebp - 0x10c]
je 0x4afaae
mov eax, dword [ebp - 0x108]
mov ecx, ebx
and eax, 7
mov esi, ebx
add edx, eax
dec eax
cmp eax, 7
ja case.default.0x4afa55
jmp dword [eax*4 + 0x4afb92]
dec edx
movzx ecx, byte [edx]
shl ecx, 0x18
dec edx
movzx eax, byte [edx]
shl eax, 0x10
or ecx, eax
dec edx
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
dec edx
movzx eax, byte [edx]
or ecx, eax
dec edx
movzx esi, byte [edx]
shl esi, 0x18
dec edx
movzx eax, byte [edx]
shl eax, 0x10
or esi, eax
dec edx
movzx eax, byte [edx]
shl eax, 8
or esi, eax
movzx eax, byte [edx - 1]
or esi, eax
mov eax, dword [ebp - 0x110]
mov dword [ebp + eax*4 - 0x104], esi
mov dword [ebp + eax*4 - 0x100], ecx
mov eax, dword [ebp - 0x108]
lea edi, [edi*2 + 2]
add eax, 3
xor ecx, ecx
cdq
inc ecx
and edx, 3
lea esi, [edx + eax]
mov edx, dword [ebp - 0x11c]
sar esi, 2
mov dword [edx + 4], 0xb7e15163
cmp edi, ecx
jle 0x4afaed
mov eax, dword [edx + ecx*4]
sub eax, 0x61c88647
mov dword [edx + ecx*4 + 4], eax
inc ecx
cmp ecx, edi
jl 0x4afadc
cmp edi, esi
mov dword [ebp - 0x108], ebx
mov eax, esi
mov ecx, ebx
cmovg eax, edi
imul eax, eax, 3
mov dword [ebp - 0x10c], eax
mov eax, ebx
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x10c], eax
jle 0x4afb7f
add ecx, dword [ebp - 0x108]
add ecx, dword [edx + eax*4 + 4]
rol ecx, 3
mov dword [edx + eax*4 + 4], ecx
mov eax, dword [ebp + ebx*4 - 0x104]
add eax, dword [ebp - 0x108]
mov dword [ebp - 0x114], ecx
add ecx, dword [ebp - 0x108]
add eax, dword [ebp - 0x114]
and ecx, 0x1f
rol eax, cl
xor ecx, ecx
mov dword [ebp + ebx*4 - 0x104], eax
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x110]
inc eax
cmp eax, edi
cmovge eax, ecx
inc ebx
cmp ebx, esi
mov dword [ebp - 0x110], eax
cmovge ebx, ecx
dec dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x114]
jne 0x4afb15
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x4afbb2
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x1048
mov edi, ecx
push 0x59d798
push edi
call fcn.005382c0
mov ebx, dword [ebp + 8]
add esp, 0xc
mov edx, ebx
xor esi, esi
lea eax, [ebx + 8]
movzx ecx, byte [edx]
inc edx
cmp edx, eax
cmovae edx, ebx
shl ecx, 8
movzx eax, byte [edx]
or ecx, eax
inc edx
lea eax, [ebx + 8]
cmp edx, eax
cmovae edx, ebx
shl ecx, 8
movzx eax, byte [edx]
or ecx, eax
inc edx
lea eax, [ebx + 8]
cmp edx, eax
cmovae edx, ebx
shl ecx, 8
movzx eax, byte [edx]
or ecx, eax
inc edx
lea eax, [ebx + 8]
cmp edx, eax
cmovae edx, ebx
xor dword [edi + esi*4], ecx
inc esi
cmp esi, 0x12
jl 0x4afbd9
xor esi, esi
mov dword [ebp - 8], esi
mov ebx, esi
mov dword [ebp - 4], esi
mov edx, edi
lea ecx, [ebp - 8]
call fcn.004b050d
mov eax, dword [ebp - 8]
mov dword [edi + ebx*4], eax
mov eax, dword [ebp - 4]
mov dword [edi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 0x12
jl 0x4afc28
mov edx, edi
lea ecx, [ebp - 8]
call fcn.004b050d
mov eax, dword [ebp - 8]
mov dword [edi + esi*4 + 0x48], eax
mov eax, dword [ebp - 4]
mov dword [edi + esi*4 + 0x4c], eax
add esi, 2
cmp esi, 0x400
jl 0x4afc47
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b42a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5c8910]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
sub esp, 0x18
mov dword [esp + 0x28], ecx
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.0040759d
lea ecx, [esp + 0x2c]
call fcn.004b6b70
mov ebx, eax
add esp, 0x18
cmp edi, ebx
je 0x4b431f
cmp dword [edi + 0x14], 8
jb 0x4b4304
push dword [edi]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
push ebx
mov word [edi], ax
call fcn.00440913
cmp dword [esp + 0x28], 8
jb 0x4b4332
push dword [esp + 0x14]
call fcn.005363a4
add esp, 4
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push esi
mov word [ecx], ax
call fcn.0040759d
lea ecx, [esp + 0x2c]
call fcn.004b6b70
mov ebx, eax
add esp, 0x18
cmp esi, ebx
je 0x4b4390
cmp dword [esi + 0x14], 8
jb 0x4b4375
push dword [esi]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00440913
cmp dword [esp + 0x28], 8
jb 0x4b43a3
push dword [esp + 0x14]
call fcn.005363a4
add esp, 4
cmp dword [edi + 0x10], 0
je 0x4b43f1
cmp dword [edi + 0x14], 8
jb 0x4b43b1
mov edi, dword [edi]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x4b43f1
cmp dword [esi + 0x10], 0
je 0x4b43f1
cmp dword [ebp + 0x10], 0
jne 0x4b4407
cmp dword [esi + 0x14], 8
jb 0x4b43d4
mov eax, dword [esi]
jmp 0x4b43d6
mov eax, esi
push eax
call edi
test eax, eax
je 0x4b4407
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esi + 8]
call fcn.00407643
mov dword [esi + 4], 0x50
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b5e20
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5765e8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp + 8]
push eax
call esi
test eax, eax
je 0x4b5e76
mov esi, 1
jmp 0x4b5fac
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.0040759d
lea ecx, [ebp - 0x28]
call fcn.004b44e0
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0
jne 0x4b5eb6
xor esi, esi
jmp 0x4b5f87
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x4b5f18
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
sub esp, 0x18
mov esi, esp
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov word [esi], ax
cmp word [edx], ax
jne 0x4b5eee
xor ecx, ecx
jmp 0x4b5f02
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b5ef3
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00408679
mov ecx, edi
call fcn.004b5e20
mov esi, eax
test esi, esi
je 0x4b5f87
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
je 0x4b5f87
cmp dword [edi], 0
je 0x4b5f87
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
push 0xffffffffffffffff
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x5c], 2
call fcn.0040759d
lea eax, [ebp - 0x5c]
push eax
lea ecx, [edi + 0x20]
call fcn.004b6f80
lea ecx, [ebp - 0x5c]
call fcn.004b5480
cmp dword [ebp - 0x14], 8
jb 0x4b5f98
push dword [ebp - 0x28]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp + 0x1c], 8
jb 0x4b5fbd
push dword [ebp + 8]
call fcn.005363a4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4b6550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5766c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.0040759d
lea ecx, [ebp - 0x28]
call fcn.004b6b70
mov edi, eax
add esp, 0x18
lea eax, [ebp + 8]
cmp eax, edi
je 0x4b65e9
cmp dword [ebp + 0x1c], 8
jb 0x4b65cc
push dword [ebp + 8]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00440913
cmp dword [ebp - 0x14], 8
jb 0x4b65fa
push dword [ebp - 0x28]
call fcn.005363a4
add esp, 4
cmp dword [ebp + 0x18], 0
je 0x4b665d
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b665d
cmp dword [esi], 0
je 0x4b662e
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x2c]
call fcn.00444862
mov esi, 1
jmp 0x4b665f
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.0040759d
mov ecx, esi
call fcn.004b5b30
mov esi, eax
jmp 0x4b665f
xor esi, esi
cmp dword [ebp + 0x1c], 8
jb 0x4b6670
push dword [ebp + 8]
call fcn.005363a4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4b9490
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4b94a5
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x70]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b94b5
push eax
call edi
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4b94bf
push eax
call edi
lea eax, [esi + 0x54]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
cmp dword [eax + 0x14], 8
jb 0x4b94df
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x6c], eax
cmp eax, 0xffffffff
jne 0x4b950f
mov dword [esi + 0x6c], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov edi, dword [ebp + 8]
push 0
push edi
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x70], eax
test eax, eax
je 0x4b9507
push edi
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
pop edi
mov dword [esi + 0x74], eax
pop esi
pop ebp
ret 4
Function at 0x4bc650
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576c68
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5c8910]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
xor eax, eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], eax
mov byte [esi + 0x30], al
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 4], eax
push 0xffffffffffffffff
mov dword [ebp - 4], eax
lea ecx, [esi + 0x54]
mov dword [esi], vtable.HttpWrapper::CHttpFileData.0
push eax
push dword [ebp + 8]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
mov word [ecx], ax
call fcn.0040759d
mov dword [esi + 0x6c], 0
mov eax, esi
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4be690
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576f90
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x4be6c6
mov eax, dword [esi]
jmp 0x4be6c8
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4be7a4
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.0040759d
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push 0x1a
xor eax, eax
mov dword [ebp - 0x30], 7
push str.tmp_123abc456def789hij.tmp
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00408679
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043eb57
add esp, 8
cmp dword [ebp - 0x30], 8
jb 0x4be746
push dword [ebp - 0x44]
call fcn.005363a4
add esp, 4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4be773
xor esi, esi
jmp 0x4be791
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 1
cmp dword [ebp - 0x18], 8
jb 0x4be7a2
push dword [ebp - 0x2c]
call fcn.005363a4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret 4

Function at 0x4bec10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [ebx], eax
cmp dword [ecx + 0x14], 8
mov dword [ebp + 8], edi
jb 0x4bec30
mov ecx, dword [ecx]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push ecx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4bec87
cmp dword [esi + 0x14], 8
mov edi, dword [ebp + 8]
jb 0x4bec5e
mov esi, dword [esi]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 4
push eax
push ebx
lea eax, [ebp - 4]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bec87
cmp dword [ebp - 4], 4
jne 0x4bec87
lea esi, [eax + 1]
jmp 0x4bec89
xor esi, esi
test edi, edi
je 0x4bec94
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4beca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577088
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5c8910]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
lea edx, [ebp + 0xc]
mov dword [ebp - 4], 0
cmp eax, edx
je 0x4becf7
push 0xffffffffffffffff
mov ecx, edx
push 0
push ecx
mov ecx, eax
call fcn.0040759d
mov ecx, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], ebx
jb 0x4bed0e
mov esi, dword [esi]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x28]
push 0
push 0
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4bee1d
mov eax, dword [ebp + 0x28]
mov ebx, dword [ebp - 0x10]
and eax, 0x300
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
jb 0x4bed4c
mov eax, dword [edi]
jmp 0x4bed4e
mov eax, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bee1d
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4bed82
cmp eax, 2
jne 0x4bee1d
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
inc eax
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x24]
call fcn.004c0160
cmp dword [edi + 0x14], 8
jb 0x4bedc0
mov edi, dword [edi]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
push esi
push edi
lea ecx, [ebp - 0x30]
call fcn.0044fe91
test eax, eax
je 0x4bedd9
xor edi, edi
jmp 0x4bee0e
cmp word [esi], 0
jne 0x4bede3
xor ecx, ecx
jmp 0x4bedff
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4bedf0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bedf0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x18]
push esi
call fcn.00408679
mov edi, 1
test esi, esi
je 0x4bee1f
push esi
call fcn.005363a4
add esp, 4
jmp 0x4bee1f
xor edi, edi
test ebx, ebx
je 0x4bee2a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x20], 8
jb 0x4bee3b
push dword [ebp + 0xc]
call fcn.005363a4
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret