joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ea1d
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
push esi
push edi
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov eax, edi
shr eax, 4
xor eax, esi
mov dword [ebp - 8], 8
and eax, 0xf0f0f0f
xor esi, eax
shl eax, 4
xor edi, eax
mov eax, edi
shr eax, 0x10
xor eax, esi
movzx eax, ax
xor esi, eax
shl eax, 0x10
xor edi, eax
mov eax, esi
shr eax, 2
xor eax, edi
and eax, 0x33333333
xor edi, eax
shl eax, 2
xor esi, eax
mov ebx, esi
shr ebx, 8
xor ebx, edi
and ebx, 0xff00ff
xor edi, ebx
shl ebx, 8
xor ebx, esi
rol ebx, 1
mov eax, ebx
xor eax, edi
and eax, 0xaaaaaaaa
xor ebx, eax
xor eax, edi
rol eax, 1
mov edi, eax
mov eax, dword [ebp - 4]
mov edx, ebx
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x524898]
or esi, dword [eax*4 + 0x524768]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x524568]
or esi, dword [edx*4 + 0x524368]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
xor edx, ebx
mov ecx, edx
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x524668]
or ecx, dword [eax*4 + 0x524468]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x524268]
or ecx, dword [edx*4 + 0x524168]
mov eax, dword [ebp - 4]
or ecx, esi
xor edi, ecx
mov edx, edi
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x524898]
or esi, dword [eax*4 + 0x524768]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x524568]
mov eax, dword [ebp - 4]
or esi, dword [edx*4 + 0x524368]
mov edx, dword [eax]
add eax, 4
xor edx, edi
mov dword [ebp - 4], eax
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x524668]
or ecx, dword [eax*4 + 0x524468]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x524268]
or ecx, dword [edx*4 + 0x524168]
or ecx, esi
xor ebx, ecx
sub dword [ebp - 8], 1
jne 0x42ea98
ror ebx, 1
mov edx, ebx
mov esi, dword [ebp - 0x10]
xor edx, edi
and edx, 0xaaaaaaaa
xor ebx, edx
xor edx, edi
ror edx, 1
mov eax, edx
shr eax, 8
xor eax, ebx
and eax, 0xff00ff
xor ebx, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, ebx
and eax, 0x33333333
xor ebx, eax
shl eax, 2
xor edx, eax
mov eax, ebx
shr eax, 0x10
xor eax, edx
movzx eax, ax
xor edx, eax
shl eax, 0x10
xor ebx, eax
mov ecx, ebx
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov eax, ecx
shl eax, 4
xor eax, ebx
xor ecx, edx
pop edi
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
pop ebx
leave
ret
Function at 0x42ed07
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
movzx ebx, dx
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xfc], eax
movzx edx, byte [esi + str.80_]
mov eax, edx
and edx, 7
shr eax, 3
movsx ecx, byte [eax + edi]
movzx eax, word [edx*2 + 0x5249e0]
test eax, ecx
setne al
mov byte [ebp + esi - 0x3c], al
inc esi
cmp esi, 0x38
jl 0x42ed33
push 0x1e
xor edi, edi
pop esi
cmp bx, 1
lea eax, [edi + edi]
mov edx, esi
cmovne edx, eax
movzx eax, byte [edi + 0x5249d0]
and dword [ebp + edx*4 - 0xf0], 0
and dword [ebp + edx*4 - 0xf4], 0
xor ecx, ecx
cmp eax, 0x1c
jge 0x42ed92
mov bl, byte [ebp + eax - 0x3c]
jmp 0x42ed96
mov bl, byte [ebp + eax - 0x58]
mov byte [ebp + ecx - 0x74], bl
inc ecx
inc eax
cmp ecx, 0x1c
jl 0x42ed87
movzx eax, byte [edi + 0x5249d0]
push 0x1c
pop ecx
add eax, ecx
cmp eax, 0x38
jge 0x42edb8
mov bl, byte [ebp + eax - 0x3c]
jmp 0x42edbc
mov bl, byte [ebp + eax - 0x58]
mov byte [ebp + ecx - 0x74], bl
inc ecx
inc eax
cmp ecx, 0x38
jl 0x42edad
xor ecx, ecx
movzx eax, byte [ecx + 0x524868]
cmp byte [ebp + eax - 0x74], 0
je 0x42ede5
mov eax, dword [ecx*4 + 0x5249f0]
or dword [ebp + edx*4 - 0xf4], eax
movzx eax, byte [ecx + 0x524880]
cmp byte [ebp + eax - 0x74], 0
je 0x42ee01
mov eax, dword [ecx*4 + 0x5249f0]
or dword [ebp + edx*4 - 0xf0], eax
inc ecx
cmp ecx, 0x18
jl 0x42edc9
mov ebx, dword [ebp - 0xf8]
sub esi, 2
inc edi
cmp esi, 0xfffffffe
jg 0x42ed62
mov edx, dword [ebp - 0xfc]
lea ecx, [ebp - 0xf4]
call fcn.0042ec2c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b5b0
leave
ret
Function at 0x42f4e2
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, edx
mov ebx, ecx
lea eax, [edi + 2]
test eax, eax
js 0x42f5f1
push 3
cdq
pop ecx
idiv ecx
cmp eax, 0x40000000
jge 0x42f5f1
push esi
mov esi, dword [ebp + 8]
cmp edi, 2
jle 0x42f581
lea eax, [edi - 3]
xor edx, edx
div ecx
push 3
lea edx, [eax + 1]
imul ecx, edx, 0xfffffffd
add edi, ecx
mov dword [ebp - 4], edi
pop edi
movzx ecx, byte [ebx]
shr ecx, 2
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, edi
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, edi
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x42f526
mov edi, dword [ebp - 4]
test edi, edi
je 0x42f5db
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
and ecx, 3
shl ecx, 4
cmp edi, 1
jle 0x42f5c9
movzx eax, byte [ebx + 1]
shr eax, 4
mov al, byte [eax + ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov byte [esi + 3], 0x3d
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
jmp 0x42f5d8
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x42f5e9
mov eax, esi
sub eax, dword [ebp + 8]
mov dword [ecx], eax
mov byte [esi], 0
xor eax, eax
pop esi
jmp 0x42f5f4
or eax, 0xffffffff
pop edi
pop ebx
leave
ret
Function at 0x43a770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef44d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x53e01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov dword [ebp - 4], 0
push 0x34
mov dword [esi + 4], 0
call fcn.004c1f39
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x43a84a
mov eax, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov eax, dword [eax]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov dword [eax + 8], ecx
mov eax, dword [esi + 4]
mov byte [eax + 0xc], 0
mov eax, dword [esi + 4]
mov byte [eax + 0xd], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0x53ab50
lea eax, [ebp + 0xb]
push eax
call fcn.004bf594
int3

Function at 0x43c306
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x4ef6a2
call fcn.0045be8d
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor ebx, ebx
call fcn.0043c52e
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push ebx
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
push 3
push ebx
inc ecx
push ecx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43c3d5
xor eax, eax
lea ecx, [ebp - 0x2c]
lea edx, [eax + 1]
call fcn.0043c52e
lea ecx, [ebp - 0x44]
call fcn.0043c95c
test al, al
jne 0x43c3a8
lea ecx, [ebp - 0x2c]
call fcn.0043c95c
test al, al
je 0x43c3a8
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
push ebx
cmovae ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x43c3a8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00407b20
cmp esi, 0xffffffff
je 0x43c40c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x43c405
push ebx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c405
cmp dword [ebp - 0x48], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
call fcn.00407b20
mov al, bl
call fcn.0045be3c
ret
Function at 0x43c41c
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x4ef6a2
call fcn.0045be8d
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor ebx, ebx
call fcn.0043c52e
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push ebx
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
push 2
push ebx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43c49a
xor eax, eax
lea ecx, [ebp - 0x2c]
lea edx, [eax + 1]
call fcn.0043c52e
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00407b20
cmp esi, 0xffffffff
je 0x43c4c1
push ebx
lea eax, [ebp - 0x48]
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c4ba
cmp dword [ebp - 0x48], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
call fcn.00407b20
mov al, bl
call fcn.0045be3c
ret

Function at 0x43c52e
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x234
mov eax, 0x4ef6fb
call fcn.0045be8d
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], esi
xor ecx, ecx
mov dword [ebp - 0x238], ecx
xor eax, eax
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
xor edi, edi
mov dword [ebp - 4], ecx
push ecx
lea eax, [ebp - 0x21c]
inc edi
push eax
mov dword [ebp - 0x238], edi
call fcn.004beec0
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43c608
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00403e20
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.004172e0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.00407b20
mov ecx, esi
test bl, bl
je 0x43c5e0
push str.TencentDeskUpdate
jmp 0x43c5e5
push str.TencentDesktop
call fcn.00403d90
mov ecx, esi
call fcn.0043c610
test al, al
jne 0x43c5fc
mov ecx, esi
call fcn.0043c6ba
push str.Global.db
mov ecx, esi
call fcn.00403d90
mov eax, esi
call fcn.0045be3c
ret
Function at 0x43c6ba
Capabilities:
Create directory

Disassembly:
push 0x69c
mov eax, 0x4ef7c1
call fcn.0045be8d
mov esi, ecx
lea edi, [esi + 0x10]
xor ebx, ebx
cmp dword [edi], ebx
jne 0x43c6db
xor al, al
jmp 0x43c949
push esi
lea ecx, [ebp - 0x678]
call fcn.00403e90
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x43c6f2
mov esi, dword [esi]
mov eax, dword [edi]
push 0x5c
pop edi
cmp word [esi + eax*2 - 2], di
je 0x43c72c
push 0x52bac0
lea ecx, [ebp - 0x660]
call fcn.00403e20
push eax
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 1
call fcn.004172e0
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], bl
call fcn.00407b20
cmp dword [ebp - 0x664], 8
lea ecx, [ebp - 0x418]
mov edx, 0x100
lea eax, [ebp - 0x678]
cmovae eax, dword [ebp - 0x678]
push edx
push ecx
push edx
lea ecx, [ebp - 0x618]
push ecx
push edx
lea ecx, [ebp - 0x218]
push ecx
push 3
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004d177a
add esp, 0x24
lea ecx, [ebp - 0x690]
push 0x52bac0
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x660]
call fcn.00403e20
push esi
push eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x648]
push dword [ebp - 0x16]
call fcn.0042cce0
lea ecx, [ebp - 0x660]
call fcn.00407b20
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 6
call fcn.00407b20
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x630]
call fcn.00403e20
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 7
call fcn.0043c610
test al, al
je 0x43c926
cmp dword [ebp - 0x620], 0
je 0x43c926
cmp dword [ebp - 0x61c], 8
lea eax, [ebp - 0x630]
cmovae eax, dword [ebp - 0x630]
cmp word [eax], di
jne 0x43c841
cmp dword [ebp - 0x61c], 8
lea ecx, [ebp - 0x630]
lea eax, [ebp - 0x630]
cmovae ecx, dword [ebp - 0x630]
cmovae eax, dword [ebp - 0x630]
sub ecx, eax
sar ecx, 1
push 1
push ecx
lea ecx, [ebp - 0x630]
call fcn.00423ae4
push ecx
push ecx
lea ecx, [ebp - 0x630]
call fcn.0043c9b2
mov esi, eax
jmp 0x43c91b
push ecx
push esi
push ebx
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x660]
call fcn.00423228
lea eax, [esi + 1]
mov byte [ebp - 4], 8
push eax
push ebx
lea ecx, [ebp - 0x630]
call fcn.00423ae4
push 0x52bac0
lea ecx, [ebp - 0x6a8]
call fcn.00403e20
push eax
lea edx, [ebp - 0x660]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x690]
call fcn.0042e230
pop ecx
push eax
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 0xa
call fcn.004172e0
lea ecx, [ebp - 0x690]
call fcn.00407b20
lea ecx, [ebp - 0x6a8]
mov byte [ebp - 4], 8
call fcn.00407b20
lea ecx, [ebp - 0x648]
call fcn.0043c610
test al, al
jne 0x43c8fd
cmp dword [ebp - 0x634], 8
lea eax, [ebp - 0x648]
cmovae eax, dword [ebp - 0x648]
push eax
call fcn.004d286e
pop ecx
test eax, eax
jne 0x43c94f
push ecx
push ecx
lea ecx, [ebp - 0x630]
call fcn.0043c9b2
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 7
mov esi, eax
call fcn.00407b20
cmp esi, 0xffffffff
jne 0x43c855
mov bl, 1
lea ecx, [ebp - 0x630]
call fcn.00407b20
lea ecx, [ebp - 0x648]
call fcn.00407b20
lea ecx, [ebp - 0x678]
call fcn.00407b20
mov al, bl
call fcn.0045be3c
ret
lea ecx, [ebp - 0x660]
call fcn.00407b20
jmp 0x43c926
Function at 0x43ff77
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push 3
pop esi
inc eax
mov dword [ebp - 0x10c], 0x104
mov dword [ebp - 0x110], eax
mov ebx, ecx
lea eax, [ebp - 0x11c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
call edi
test eax, eax
jne 0x440125
push ebx
push str._sConnection
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.004405bd
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x44011d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x440115
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x10c], 0x103
call fcn.004beec0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x440115
mov eax, dword [ebp - 0x114]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x44010f
push esi
lea eax, [ebp - 0x108]
push 0x530600
push eax
call fcn.004d1820
add esp, 0xc
test eax, eax
jne 0x4400e1
xor esi, esi
jmp 0x440115
mov eax, dword [ebp - 0x114]
cmp eax, ebx
jne 0x44010f
push esi
lea eax, [ebp - 0x108]
push 0x530600
push eax
call fcn.004d1820
add esp, 0xc
test eax, eax
je 0x440109
push 2
pop esi
jmp 0x440115
mov eax, dword [ebp - 0x114]
cmp eax, 2
cmove esi, ebx
push dword [ebp - 0x118]
call edi
push dword [ebp - 0x11c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b5b0
leave
ret
Function at 0x44037d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa8
call fcn.0045c6a0
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x2a98], edi
call fcn.004beec0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4403d2
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x440413
push 0x5c
pop eax
cmp ax, word [ebp + ecx*2 - 0x20e]
je 0x440413
mov word [ebp + ecx*2 - 0x20c], ax
lea ecx, [ecx*2 + 2]
cmp ecx, esi
jae 0x44058f
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x44041c
sub ecx, edx
mov edx, 0x104
sar ecx, 1
mov eax, edx
sub eax, ecx
push eax
push str.iphlpapi.dll
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.004d2af6
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa8], eax
test eax, eax
jne 0x440468
xor al, al
jmp 0x440580
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x440559
lea ecx, [ebp - 0x2aa0]
mov dword [ebp - 0x2aa0], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x440559
push 3
pop eax
mov dword [ebp - 0x2a9c], eax
lea esi, [ebp - 0x2a8c]
mov ebx, edi
lea eax, [ebp - 0x2a94]
sub ebx, eax
lea ecx, [esi + 8]
call fcn.0043ff77
xor ecx, ecx
mov dword [ebp - 0x2aa4], eax
mov dword [ebp - 0x2a94], ecx
mov edi, ecx
mov word [ebp - 0x2a90], cx
lea edx, [ebp - 0x2a94]
add edx, edi
mov cl, byte [ebx + edx]
cmp cl, byte [edx]
jne 0x4404ed
inc edi
cmp edi, 6
jb 0x4404d6
jmp 0x4404fe
cmp dword [esi + 0x1a0], 6
jne 0x440547
cmp dword [ebp - 0x2a9c], eax
jle 0x440547
mov edi, dword [ebp - 0x2a98]
mov al, byte [esi + 0x194]
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov eax, dword [ebp - 0x2aa4]
mov dword [ebp - 0x2a9c], eax
jmp 0x44054d
mov edi, dword [ebp - 0x2a98]
mov esi, dword [esi]
test esi, esi
jne 0x4404b7
xor ebx, ebx
push dword [ebp - 0x2aa8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x2a94]
mov dword [ebp - 0x2a94], ebx
push eax
mov ecx, edi
mov word [ebp - 0x2a90], bx
call fcn.0043ff4f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b5b0
leave
ret
call fcn.0045ba77
int3
Function at 0x440a6d
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd3c], edx
push edi
mov dword [ebp - 0xd38], ecx
xor esi, esi
mov dword [ebp - 0xd40], eax
test bl, bl
jne 0x440cb5
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.004beec0
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.00440e13
add esp, 0x10
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x440cab
xor eax, eax
push 0x800
push eax
mov dword [ebp - 0xd34], eax
mov dword [ebp - 0xd10], eax
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd14], eax
lea eax, [ebp - 0xd0c]
push eax
call fcn.004beec0
add esp, 0xc
lea eax, [ebp - 0xd34]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd18]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x440c9e
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004beec0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.004beec0
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.004beec0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0xd0c]
push eax
push 0
call fcn.0044066d
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.0044066d
call fcn.00422d07
mov edx, dword [ebp - 0xcf4]
mov ecx, eax
lea eax, [ebp - 0x10c]
push eax
xor eax, eax
cmp ecx, 0xb
lea ecx, [ebp - 0xd0c]
setl al
push eax
call fcn.0044066d
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.004d1a60
add esp, 0x1c
test eax, eax
jne 0x440c1f
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.004d1a60
pop ecx
test eax, eax
je 0x440ca4
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.00417580
mov ecx, dword [ebp - 0xd38]
push eax
call fcn.00417500
lea ecx, [ebp - 0xd30]
call fcn.00419160
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.00417580
mov ecx, dword [ebp - 0xd3c]
push eax
call fcn.00417500
lea ecx, [ebp - 0xd30]
call fcn.00419160
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.00417580
mov ecx, dword [ebp - 0xd40]
push eax
call fcn.00417500
lea ecx, [ebp - 0xd30]
call fcn.00419160
mov bl, 1
jmp 0x440ca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x440a9c
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b5b0
leave
ret