joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446949
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp edx, esi
push edi
mov dword [ebp - 4], esi
jne 0x44699d
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x44697b
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], eax
mov edx, eax
jne 0x44699d
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x446998
xor eax, eax
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 0xffffffff
je 0x4469e7
cmp edx, esi
je 0x4469e7
push 9
pop ecx
xor eax, eax
push 0x28
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
pop eax
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov esi, dword [ebp - 0x1c]
jmp 0x4469ea
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00402cb5
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x448279
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00405a2a
cmp dword [ebp - 8], ebx
je 0x4482be
push dword [ebp - 8]
call fcn.0049a57e
mov edi, edx
cmp edi, ebx
pop ecx
mov esi, eax
jg 0x4482c2
jl 0x4482be
cmp esi, ebx
jae 0x4482c2
xor esi, esi
xor edi, edi
lea ecx, [ebp - 4]
call fcn.0044489c
cmp edi, ebx
jl 0x44830c
jg 0x4482d4
cmp esi, ebx
jbe 0x44830c
lea eax, [esi + 5]
push eax
lea ecx, [ebp - 4]
call fcn.004448de
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp eax, edi
jl 0x448306
jg 0x448304
cmp ecx, esi
jbe 0x448306
mov ecx, esi
mov eax, dword [ebp - 4]
mov byte [ecx + eax], bl
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 4]
call fcn.00444acb
lea ecx, [ebp - 4]
call fcn.0043e48d
lea ecx, [ebp - 8]
call fcn.00402cb5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4486b6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
and eax, 1
mov dword [ebp - 4], eax
call fcn.0049a57e
mov ebx, eax
test ebx, ebx
pop ecx
jg 0x4486dc
xor eax, eax
jmp 0x448866
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.00444a55
mov esi, dword [edi]
or dword [ebp - 8], 0xffffffff
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ebx, dword [ebp - 8]
test ebx, ebx
jle 0x448862
test eax, eax
je 0x448862
push 0xa
lea eax, [ebx + esi]
push 0
push eax
call fcn.004acf60
lea eax, [ebx + 0xa]
add esp, 0xc
mov dword [ebp + 0x10], eax
push 2
push 0x4c62fc
push esi
call fcn.0043e4f6
add esp, 0xc
test eax, eax
jne 0x448749
push ebx
push esi
call fcn.00442ad2
pop ecx
pop ecx
push 2
push 0x4c62f8
push esi
call fcn.0043e4f6
add esp, 0xc
neg eax
sbb eax, eax
inc eax
cmp byte [esi], 0
je 0x448787
cmp byte [esi + 1], 0
jne 0x448787
push dword [ebp + 0x10]
lea eax, [esi + 2]
push esi
push eax
call fcn.00414356
add dword [ebp + 0x10], 2
add esp, 0xc
inc ebx
xor eax, eax
inc ebx
mov word [esi], 0xfeff
inc eax
test eax, eax
jne 0x4487b4
cmp byte [esi], al
jne 0x4487bd
cmp byte [esi + 1], al
je 0x4487bd
push dword [ebp + 0x10]
lea eax, [esi + 2]
push esi
push eax
call fcn.00414356
add esp, 0xc
inc ebx
inc ebx
add dword [ebp + 0x10], 2
mov word [esi], 0xfffe
jmp 0x44872c
mov eax, ebx
shr eax, 1
jmp 0x448864
mov eax, dword [edi]
and dword [edi], 0
push ebx
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.00444a55
mov eax, dword [edi]
mov cx, word [0x4c62f8]
push 3
mov word [eax], cx
pop eax
push eax
push 0x4c6300
push esi
mov dword [ebp + 0x10], eax
call fcn.00444ce2
add esp, 0xc
test eax, eax
jne 0x4487f9
cmp dword [ebp - 4], eax
je 0x448828
jmp 0x4487fc
mov eax, dword [ebp + 0x10]
lea ecx, [ebx + 1]
push ecx
mov ecx, dword [edi]
inc ecx
inc ecx
push ecx
mov ecx, ebx
sub ecx, eax
push ecx
add eax, esi
push eax
push 8
push 0xfde9
call dword [0x4dabe4]
cmp dword [ebp - 4], 0
je 0x44885b
test eax, eax
jg 0x44885f
or dword [ebp - 4], 2
lea eax, [ebx + 1]
push eax
mov eax, dword [edi]
inc eax
inc eax
push eax
push ebx
push esi
push 8
push 0
call dword [0x4dabe4]
and dword [ebp + 0x10], 0
test eax, eax
jg 0x44885f
cmp dword [ebp - 4], 0
je 0x4487f9
xor eax, eax
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.0043e48d
mov eax, esi
jmp 0x448864
test eax, eax
jle 0x44884b
inc eax
jmp 0x44884d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x448b6f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov byte [ebp - 0x28], bl
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00405a2a
cmp dword [ebp - 4], ebx
je 0x448bc3
push ebx
lea eax, [ebp - 8]
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00441870
add esp, 0xc
mov bl, al
lea ecx, [ebp - 4]
call fcn.00402cb5
mov al, bl
pop ebx
leave
ret

Function at 0x449089
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
movzx eax, word [0x4dac14]
or eax, 0x20019
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x449134
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0x1000
mov ecx, edi
mov dword [esi], 0xffa
call fcn.004448de
mov eax, dword [edi]
mov byte [eax], bl
mov eax, dword [edi]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
push dword [ebp - 4]
call ebx
cmp eax, 0xea
mov dword [ebp - 8], eax
jne 0x44911f
add dword [esi], 0xa
mov eax, dword [esi]
add eax, 6
push eax
mov ecx, edi
call fcn.004448de
mov eax, dword [edi]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call ebx
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
or ebx, 0xffffffff
cmp dword [ebp - 8], 0
je 0x449142
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x44913d
mov dword [ecx], eax
lea eax, [ebx - 1]
jmp 0x449173
xor ecx, ecx
cmp dword [esi], ecx
jge 0x44914a
mov dword [esi], ecx
mov eax, dword [edi]
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [esi]
mov edx, dword [edi]
inc eax
shr eax, 1
lea eax, [edx + eax*2]
mov word [eax + 2], cx
mov word [eax], cx
mov eax, dword [esi]
add eax, 5
push eax
mov ecx, edi
call fcn.004448de
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4493a0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
xor esi, esi
push esi
push 0x20000000
push 3
push esi
push 3
push 0x100080
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00405a2a
cmp dword [ebp - 4], esi
jne 0x4493d4
or esi, 0xffffffff
jmp 0x44940f
or dword [ebp - 0xc], 0xffffffff
push esi
lea eax, [ebp - 0x1a0]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x2d1080
push dword [ebp - 4]
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4493cf
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x44940c
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402cb5
mov eax, esi
pop esi
leave
ret
Function at 0x4496a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
xor edx, edx
cmp ecx, edx
push ebx
push esi
push edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
ja 0x4496d1
cmp dword [ebp + 0x18], edx
jbe 0x4496da
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
cmp eax, edx
jne 0x4496e4
lea eax, [ebp - 0x14]
mov dword [ebp + 0x20], eax
mov edi, dword [ebp + 0x14]
cmp edi, edx
mov esi, dword [ebp + 8]
jg 0x4496fe
push 0x200
push dword [esi]
call fcn.00441d1c
pop ecx
pop ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
shl eax, 7
lea eax, [eax + edi - 1]
xor edx, edx
div edi
mov ebx, eax
inc ebx
inc ebx
lea eax, [ebx + 2]
imul eax, edi
push eax
push 0
push dword [ebp + 0xc]
call fcn.004acf60
and dword [ebp + 0x14], 0
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [esi]
call fcn.0043f790
add esp, 0x1c
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
xor ecx, ecx
cmp dword [ebp + 0x1c], ecx
ja 0x449779
jb 0x449757
cmp dword [ebp + 0x18], ecx
ja 0x449779
mov eax, 0x1c2
mov edx, dword [ebp + 0xc]
cmp byte [eax + edx], 0xee
jne 0x44976f
mov edx, dword [eax + edx + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
add eax, 0x10
cmp eax, 0x1f2
jle 0x44975c
push ecx
push dword [ebp - 8]
mov eax, edi
push dword [ebp - 0xc]
cdq
push edx
push eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
call fcn.004ad070
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.0043f790
mov eax, dword [ebp + 0xc]
add esp, 0x10
add eax, edi
inc ebx
imul ebx, edi
push 0
lea ecx, [ebp + 0x14]
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push eax
push dword [esi]
mov dword [ebp + 0x10], eax
call ebx
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi*2 + 0x10000]
mov dword [ebp + 0xc], eax
je 0x44982f
push edi
push 0
push eax
call fcn.004acf60
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [eax + 4], 0
ja 0x4497fd
jb 0x4497ef
cmp dword [eax], 2
jae 0x4497fd
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x20]
mov dword [eax], edx
mov ecx, dword [ecx + 0x24]
mov dword [eax + 4], ecx
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.004ad070
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.0043f790
add esp, 0x10
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi]
call ebx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44a669
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x23
sete al
test eax, eax
mov dword [ebp - 4], eax
je 0x44a683
inc esi
cmp byte [esi], 0x23
mov byte [ebp + 0xb], 0
jne 0x44a6a2
mov al, byte [esi + 1]
test al, al
jne 0x44a69a
xor eax, eax
jmp 0x44a724
inc dword [ebp - 4]
inc esi
mov byte [ebp + 0xb], al
inc esi
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
call edi
mov ebx, dword [ebp + 0xc]
lea eax, [eax + eax*2 + 3]
push eax
mov ecx, ebx
mov dword [ebp - 8], esi
call fcn.004448de
mov eax, dword [ebx]
xor cl, cl
mov byte [eax], 0
xor ebx, ebx
cmp byte [esi], cl
mov dword [ebp - 0xc], eax
je 0x44a6ea
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x44a727
test cl, cl
jle 0x44a6e1
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
mov dword [ebp - 8], esi
jne 0x44a6cf
push dword [ebp - 0xc]
mov byte [eax], 0
call edi
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov esi, eax
je 0x44a71d
cmp esi, ecx
jle 0x44a71d
mov eax, dword [ebp - 0xc]
lea edi, [ecx + eax]
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov al, byte [edx + 0x4c695c]
xor al, byte [ebp + 0xb]
xor byte [edi], al
inc ecx
cmp ecx, esi
jl 0x44a6ff
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
pop edi
pop ebx
pop esi
leave
ret
cmp dl, 0x2b
jne 0x44a730
xor dl, dl
jmp 0x44a756
cmp dl, 0x2f
jne 0x44a73a
add dl, 0xd2
jmp 0x44a756
cmp dl, 0x39
ja 0x44a744
add dl, 0xd2
jmp 0x44a756
cmp dl, 0x5a
ja 0x44a74e
add dl, 0xcb
jmp 0x44a756
cmp dl, 0x7a
ja 0x44a75b
add dl, 0xc5
movzx edx, dl
jmp 0x44a75e
or edx, 0xffffffff
test edx, edx
jl 0x44a78d
mov esi, dword [ebp - 8]
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x44a782
test cl, cl
jle 0x44a6e1
cmp byte [esi], 0
jne 0x44a6e1
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x44a76c
xor eax, eax
jmp 0x44a722
Function at 0x44ab21
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x33c
lea eax, [ebp + 0x78]
push ebx
push eax
mov dword [ebp + 0x50], ecx
call fcn.0043e425
mov dword [esp], 0x4c8244
push 5
pop eax
lea ebx, [ebp + 0x78]
mov byte [ebp + 0x6f], 0
call fcn.0044463f
test al, al
pop ecx
je 0x44ab58
mov byte [ebp + 0x6f], 1
lea ecx, [ebp + 0x64]
call fcn.00444a10
mov eax, dword [ebp + 0x78]
xor ebx, ebx
cmp word [eax], 0x3d
mov dword [ebp + 0x60], 0x4c0450
je 0x44ab8e
mov ecx, dword [ebp + 0x50]
push ebx
push 0x3d
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043970c
mov dword [ebp + 0x78], eax
cmp word [eax], 0x3d
jne 0x44ab9d
inc eax
inc eax
push eax
mov dword [ebp + 0x78], eax
call fcn.004130a1
pop ecx
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x64]
cmp word [eax], bx
jne 0x44abb2
lea ecx, [ebp + 0x64]
call fcn.0043e48d
jmp 0x44acd7
push esi
mov esi, dword [ebp + 0x60]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, eax
xor eax, eax
cmp edx, ebx
mov ecx, 0x93
lea edi, [ebp - 0x2c8]
mov dword [ebp - 0x2cc], ebx
mov dword [ebp + 0x4c], edx
mov dword [ebp + 0x5c], ebx
rep stosd dword es:[edi], eax
jle 0x44abf0
mov ax, word [esi + edx*2 - 2]
cmp ax, 0x5c
je 0x44ac65
cmp ax, 0x2f
je 0x44ac65
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp + 0x5c]
push esi
push eax
call fcn.004ac6b1
add esp, 0xc
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x5c], ebx
je 0x44aca4
test byte [ebp - 0x2cc], 0x10
jne 0x44ac6b
test byte [ebp - 0x2cb], 4
jne 0x44ac3c
cmp byte [ebp + 0x6f], bl
jg 0x44ac3c
mov eax, dword [ebp - 0x2ac]
mov edi, dword [ebp - 0x2b0]
xor ecx, ecx
or esi, eax
or edi, ecx
jmp 0x44aca4
push ebx
push 0x80
push 3
push ebx
push 7
push ebx
push dword [ebp + 0x60]
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x68], ebx
call fcn.00405a2a
cmp dword [ebp + 0x68], ebx
jne 0x44ac83
lea ecx, [ebp + 0x68]
call fcn.00402cb5
jmp 0x44ac6b
mov edi, dword [ebp + 0x58]
mov esi, dword [ebp + 0x54]
cmp dword [ebp + 0x4c], 0x20e
jge 0x44aca4
push dword [ebp + 0x60]
call fcn.0044a9c7
pop ecx
mov esi, eax
mov edi, edx
jmp 0x44aca4
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x68]
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov esi, dword [ebp + 0x54]
mov edi, dword [ebp + 0x58]
lea ecx, [ebp + 0x68]
call fcn.00402cb5
push edi
lea eax, [ebp - 0x7c]
push esi
push eax
mov word [ebp - 0x7c], bx
call fcn.0049a8e4
mov ecx, dword [ebp + 0x50]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x64]
call fcn.0044414b
lea ecx, [ebp + 0x5c]
call fcn.00402cea
lea ecx, [ebp + 0x64]
call fcn.0043e48d
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x44bbfe
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi]
call fcn.0043f790
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
pop esi
ret
Function at 0x44d05c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.00405a2a
cmp dword [ebp - 4], edi
je 0x44d101
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0xc], edi
jne 0x44d099
lea esi, [ebp - 0xc]
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
cmp ebx, edi
setne cl
mov dword [esi], eax
cmp ecx, edi
mov dword [ebp - 8], ecx
je 0x44d0cf
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp eax, edi
mov dword [ebx], eax
je 0x44d0ff
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
jmp 0x44d0d6
mov ebx, eax
call fcn.00497ccf
mov ebx, eax
cmp ebx, edi
je 0x44d0ff
push edi
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 8], edi
je 0x44d0fd
mov eax, dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov edi, ebx
pop ebx
pop esi
lea ecx, [ebp - 4]
call fcn.00402cb5
mov eax, edi
pop edi
leave
ret
Function at 0x44d8c9
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0x104
push edi
mov ecx, esi
call fcn.00444a55
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push eax
push dword [esp + 0x18]
call edi
mov ebx, eax
test ebx, ebx
jle 0x44d916
mov eax, dword [esi]
cmp word [eax], 0
jne 0x44d916
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.00444a55
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x44d9d8
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
push 3
pop eax
jge 0x44da8c
cmp cx, 0x61
jb 0x44da03
cmp cx, 0x7a
ja 0x44da03
and ecx, 0xffdf
push 0x5c
pop eax
push ebx
push ebx
push 3
push ebx
push 3
mov word [ebp - 0x14], ax
mov word [ebp - 0x28], ax
mov word [ebp - 0x26], ax
mov word [ebp - 0x22], ax
push ebx
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x12], bx
mov word [ebp - 0x24], 0x2e
mov word [ebp - 0x20], cx
mov word [ebp - 0x1e], 0x3a
mov word [ebp - 0x1c], bx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44daa6
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push 0x2d1080
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, ebx
pop edi
je 0x44da82
mov eax, dword [ebp - 0x34]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp dword [ebp + 8], 0xffffffff
je 0x44daa6
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.00443f07
add esp, 0xc
cmp eax, ebx
jne 0x44daae
xor eax, eax
inc eax
jmp 0x44db4d
push ebx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.setupapi.dll_CM_Get_Parent]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.setupapi.dll_CM_Get_DevNode_Status]
mov eax, dword [ebp - 0x10]
shr eax, 0xe
and al, 1
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 1
mov esi, 0x208
push ebx
push esi
cmp al, bl
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov word [ebp - 0x240], bx
je 0x44db12
call dword [sym.imp.setupapi.dll_CM_Request_Device_EjectW]
jmp 0x44db18
call dword [sym.imp.setupapi.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x44db21
cmp dword [ebp - 0xc], ebx
je 0x44db40
push ebx
push ebx
push 0xc8
mov ecx, 0x4db0e0
call fcn.00415f6a
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jg 0x44db42
mov al, byte [ebp + 0xb]
jmp 0x44daef
mov bl, 1
neg bl
sbb ebx, ebx
and ebx, 0xfffffffe
inc ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x44f4c5
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 4
push 0x2001b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0043f5c9
add esp, 0x14
cmp eax, esi
jne 0x44f613
test byte [ebp + 0x10], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
je 0x44f512
push 0x4bfa2c
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x44f540
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00444a2e
cmp dword [ebp - 0xc], esi
jne 0x44f5ff
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x44f5af
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x44f5af
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegEnumValueW]
cmp eax, esi
jne 0x44f5a9
cmp word [edi], si
je 0x44f5ac
push edi
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
cmp eax, esi
je 0x44f5ac
mov dword [ebp - 0xc], eax
dec ebx
jns 0x44f56f
test byte [ebp + 0x10], 2
je 0x44f5fd
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x44f5fd
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x44f5f7
cmp word [edi], si
je 0x44f5fa
push edi
push dword [ebp - 4]
call dword [0x4db254]
cmp eax, esi
je 0x44f5fa
mov dword [ebp - 0xc], eax
dec ebx
jns 0x44f5bd
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.0043e48d
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x44f616
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0044dfb0
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0044dfb0
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x4db0e0
call fcn.00410fbb
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.0043e48d
lea ecx, [ebp - 8]
call fcn.0043e48d
mov esi, str.0.0.0.0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
push eax
push 4
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExA]
push 0
push str.EnableDHCP
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.IPAddress
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.SubnetMask
push dword [ebx]
call esi
push edi
mov edi, 0x4c080a
push edi
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44f6f1
cmp byte [eax], 0x2d
jne 0x44f6d2
mov dword [ebp + 0xc], edi
cmp byte [eax], 0
je 0x44f6f1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push 0
push str.NameServer
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret