joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004af4c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x20]
xor edx, edx
push edi
mov edi, dword [ebp + 0x18]
xor ecx, ecx
inc edx
mov eax, edi
add eax, edx
adc ebx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
jne 0x1004af81
cmp eax, edx
jbe 0x1004af8a
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
cmp esi, ecx
jne 0x1004af94
lea eax, [ebp - 0x14]
mov dword [ebp + 0x20], eax
mov edi, dword [ebp + 0x14]
cmp edi, ecx
mov esi, dword [ebp + 8]
jg 0x1004afae
push 0x200
push dword [esi]
call fcn.1004342a
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.100b40f0
and dword [ebp + 0x14], 0
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [esi]
call fcn.10040d01
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 0x1004b029
jb 0x1004b007
cmp dword [ebp + 0x18], ecx
ja 0x1004b029
mov eax, 0x1c2
mov edx, dword [ebp + 0xc]
cmp byte [eax + edx], 0xee
jne 0x1004b01f
mov edx, dword [eax + edx + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
add eax, 0x10
cmp eax, 0x1f2
jle 0x1004b00c
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.100b4200
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.10040d01
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 0x1004b0df
push edi
push 0
push eax
call fcn.100b40f0
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [eax + 4], 0
ja 0x1004b0ad
jb 0x1004b09f
cmp dword [eax], 2
jae 0x1004b0ad
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.100b4200
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.10040d01
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 0x1004c245
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 0x1004c25f
inc esi
cmp byte [esi], 0x23
mov byte [ebp + 0xb], 0
jne 0x1004c27e
mov al, byte [esi + 1]
test al, al
jne 0x1004c276
xor eax, eax
jmp 0x1004c300
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.10045ff1
mov eax, dword [ebx]
xor cl, cl
mov byte [eax], 0
xor ebx, ebx
cmp byte [esi], cl
mov dword [ebp - 0xc], eax
je 0x1004c2c6
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x1004c303
test cl, cl
jle 0x1004c2bd
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
mov dword [ebp - 8], esi
jne 0x1004c2ab
push dword [ebp - 0xc]
mov byte [eax], 0
call edi
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov esi, eax
je 0x1004c2f9
cmp esi, ecx
jle 0x1004c2f9
mov eax, dword [ebp - 0xc]
lea edi, [ecx + eax]
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov al, byte [edx + 0x100cdb9c]
xor al, byte [ebp + 0xb]
xor byte [edi], al
inc ecx
cmp ecx, esi
jl 0x1004c2db
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
pop edi
pop ebx
pop esi
leave
ret
cmp dl, 0x2b
jne 0x1004c30c
xor dl, dl
jmp 0x1004c332
cmp dl, 0x2f
jne 0x1004c316
add dl, 0xd2
jmp 0x1004c332
cmp dl, 0x39
ja 0x1004c320
add dl, 0xd2
jmp 0x1004c332
cmp dl, 0x5a
ja 0x1004c32a
add dl, 0xcb
jmp 0x1004c332
cmp dl, 0x7a
ja 0x1004c337
add dl, 0xc5
movzx edx, dl
jmp 0x1004c33a
or edx, 0xffffffff
test edx, edx
jl 0x1004c369
mov esi, dword [ebp - 8]
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x1004c35e
test cl, cl
jle 0x1004c2bd
cmp byte [esi], 0
jne 0x1004c2bd
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x1004c348
xor eax, eax
jmp 0x1004c2fe
Function at 0x1004c6fd
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.1003f9c4
mov dword [esp], 0x100cf4fc
push 5
pop eax
lea ebx, [ebp + 0x78]
mov byte [ebp + 0x6f], 0
call fcn.10045d09
test al, al
pop ecx
je 0x1004c734
mov byte [ebp + 0x6f], 1
lea ecx, [ebp + 0x64]
call fcn.10046123
mov eax, dword [ebp + 0x78]
xor ebx, ebx
cmp word [eax], 0x3d
mov dword [ebp + 0x60], 0x100c7504
je 0x1004c76a
mov ecx, dword [ebp + 0x50]
push ebx
push 0x3d
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.1003ac0c
mov dword [ebp + 0x78], eax
cmp word [eax], 0x3d
jne 0x1004c779
inc eax
inc eax
push eax
mov dword [ebp + 0x78], eax
call fcn.100132bf
pop ecx
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x64]
cmp word [eax], bx
jne 0x1004c78e
lea ecx, [ebp + 0x64]
call fcn.1003f96c
jmp 0x1004c8b5
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 0x1004c7cc
mov ax, word [esi + edx*2 - 2]
cmp ax, 0x5c
je 0x1004c82d
cmp ax, 0x2f
je 0x1004c82d
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp + 0x5c]
push esi
push eax
call fcn.100b37d1
add esp, 0xc
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x5c], ebx
je 0x1004c882
test byte [ebp - 0x2cc], 0x10
jne 0x1004c833
test byte [ebp - 0x2cb], 4
je 0x1004c86e
cmp byte [ebp + 0x6f], bl
jle 0x1004c86e
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.10005b9d
cmp dword [ebp + 0x68], ebx
jne 0x1004c84b
lea ecx, [ebp + 0x68]
call fcn.10002d56
jmp 0x1004c833
mov edi, dword [ebp + 0x58]
mov esi, dword [ebp + 0x54]
cmp dword [ebp + 0x4c], 0x20e
jge 0x1004c882
push dword [ebp + 0x60]
call fcn.1004c5a3
pop ecx
mov esi, eax
mov edi, edx
jmp 0x1004c882
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.10002d56
jmp 0x1004c882
mov eax, dword [ebp - 0x2ac]
mov edi, dword [ebp - 0x2b0]
xor esi, esi
xor ecx, ecx
or esi, eax
or edi, ecx
push edi
lea eax, [ebp - 0x7c]
push esi
push eax
mov word [ebp - 0x7c], bx
call fcn.100a0e5d
mov ecx, dword [ebp + 0x50]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x64]
call fcn.100457c2
lea ecx, [ebp + 0x5c]
call fcn.10002d8b
lea ecx, [ebp + 0x64]
call fcn.1003f96c
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x1004d70c
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.10040d01
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret
Function at 0x1004ec0b
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.10005b9d
cmp dword [ebp - 4], edi
je 0x1004ecb0
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0xc], edi
jne 0x1004ec48
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 0x1004ec7e
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebx], eax
je 0x1004ecae
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
jmp 0x1004ec85
mov ebx, eax
call fcn.1000f706
mov ebx, eax
cmp ebx, edi
je 0x1004ecae
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 0x1004ecac
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.10002d56
mov eax, edi
pop edi
leave
ret
Function at 0x1004faae
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.10046168
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 0x1004fafb
mov eax, dword [esi]
cmp word [eax], 0
jne 0x1004fafb
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.10046168
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x1004fbbd
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 0x1004fc71
cmp cx, 0x61
jb 0x1004fbe8
cmp cx, 0x7a
ja 0x1004fbe8
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 0x1004fc8b
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 0x1004fc67
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 0x1004fc8b
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.100454f4
add esp, 0xc
cmp eax, ebx
jne 0x1004fc93
xor eax, eax
inc eax
jmp 0x1004fd32
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 0x1004fcf7
call dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
jmp 0x1004fcfd
call dword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x1004fd06
cmp dword [ebp - 0xc], ebx
je 0x1004fd25
push ebx
push ebx
push 0xc8
mov ecx, 0x100e3108
call fcn.10011621
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jg 0x1004fd27
mov al, byte [ebp + 0xb]
jmp 0x1004fcd4
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 0x10051731
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.10040b3a
add esp, 0x14
cmp eax, esi
jne 0x1005187f
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 0x1005177e
push 0x100c6a64
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 0x100517ac
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10046141
cmp dword [ebp - 0xc], esi
jne 0x1005186b
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x1005181b
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x1005181b
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 0x10051815
cmp word [edi], si
je 0x10051818
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x10051818
mov dword [ebp - 0xc], eax
dec ebx
jns 0x100517db
test byte [ebp + 0x10], 2
je 0x10051869
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x10051869
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 0x10051863
cmp word [edi], si
je 0x10051866
push edi
push dword [ebp - 4]
call dword [0x100e327c]
cmp eax, esi
je 0x10051866
mov dword [ebp - 0xc], eax
dec ebx
jns 0x10051829
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.1003f96c
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x10051882
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp byte [0x100e2e70], 0
push esi
push edi
je 0x100518d4
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.10050221
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.10050221
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x100e3108
call fcn.10011029
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.1003f96c
lea ecx, [ebp - 8]
call fcn.1003f96c
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, 0x100c78c2
push edi
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10051966
cmp byte [eax], 0x2d
jne 0x10051947
mov dword [ebp + 0xc], edi
cmp byte [eax], 0
je 0x10051966
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
Function at 0x10053d50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp byte [0x100e3430], bl
jne 0x10053ece
push esi
push edi
push 0x1122
lea ecx, [ebp - 0x18]
call fcn.10046141
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
mov dword [esi], ebx
push str.TIPSDUMMY
mov dword [esi + 4], ebx
mov word [esi], bx
push str.SOFTWAREPELOGON
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0xc], 0x1ffe
call fcn.10040bf5
add esp, 0x18
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x10053dc3
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x10053dc6
mov eax, dword [ebp - 0xc]
shr eax, 1
mov word [esi + eax*2], bx
cmp word [esi], bx
jne 0x10053eb2
lea eax, [esi + 0x2000]
push 0x104
push eax
push ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..USRCFG.INI
lea eax, [esi + 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
lea eax, [esi + 0x2000]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.10005b9d
push ebx
lea eax, [ebp - 8]
push eax
push 0x1ffe
push esi
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_ReadFile]
shr dword [ebp - 8], 1
mov eax, 0xffe
cmp dword [ebp - 8], eax
jbe 0x10053e49
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov word [esi + eax*2], bx
cmp word [esi], 0xfeff
jne 0x10053e8c
add esi, 2
mov dword [ebp - 4], esi
jmp 0x10053e8c
lea eax, [ebp - 4]
push eax
call fcn.1003f9c4
mov esi, dword [ebp - 4]
push 0xd
lea eax, [ebp - 4]
push 0xa
push eax
call fcn.1003ff40
push 0xa
push str.TIPSDUMMY:
push esi
call fcn.1000f6d2
add esp, 0x1c
test al, al
jne 0x10053e96
mov eax, dword [ebp - 4]
cmp word [eax], bx
jne 0x10053e5f
jmp 0x10053eaa
mov eax, dword [ebp - 4]
add esi, 0x14
cmp word [eax], bx
je 0x10053ea4
mov word [eax], bx
xor edi, edi
mov dword [ebp - 0x14], esi
inc edi
lea ecx, [ebp - 0x10]
call fcn.10002d56
xor eax, eax
cmp edi, ebx
setne al
push eax
push dword [ebp - 0x14]
call fcn.10053cca
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.1003f96c
pop edi
pop esi
mov eax, dword [0x100e3d24]
pop ebx
leave
ret
Function at 0x10054496
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push edi
xor ebx, ebx
inc ebx
xor edi, edi
push 0x100000
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov word [ebp - 0x21c], di
call fcn.10046141
cmp dword [ebp + 0x14], edi
jne 0x100544ea
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
cmp ebx, edi
lea eax, [ebp - 0x21c]
mov dword [ebp + 0x14], eax
je 0x1005461d
cmp dword [ebp - 4], edi
push esi
mov esi, 0xa0000000
mov dword [ebp - 0xc], edi
je 0x100544fd
mov esi, 0xe0000000
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 3
push esi
push dword [ebp + 0xc]
call dword [0x100e32b0]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jne 0x10054554
cmp dword [ebp - 4], 1
jne 0x1005454a
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 3
and esi, 0xbfffffff
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], 2
call dword [0x100e32b0]
test eax, eax
mov dword [ebp - 8], eax
je 0x1005451c
cmp dword [ebp - 8], 0
jne 0x10054554
call edi
xor ebx, ebx
test ebx, ebx
je 0x1005460d
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [0x100e32b4]
mov ebx, eax
test ebx, ebx
jne 0x10054571
call edi
inc ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [0x100e32b8]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x10054588
call edi
xor ebx, ebx
test ebx, ebx
je 0x100545fe
cmp dword [ebp - 4], 0
mov esi, 0x400
jne 0x1005459c
mov esi, 0x600
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x100e32bc]
mov ebx, eax
call edi
test ebx, ebx
jne 0x100545fe
test esi, 0x400
je 0x100545d9
cmp eax, 0x57
jne 0x100545d9
and esi, 0xfffffbff
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x100e32bc]
mov ebx, eax
call edi
test ebx, ebx
je 0x100545b1
test ebx, ebx
jne 0x100545fe
cmp dword [ebp - 4], 2
jne 0x100545fc
or esi, 0x200
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x100e32bc]
mov ebx, eax
test ebx, ebx
jne 0x100545fe
call edi
cmp dword [ebp + 0x14], 0
je 0x1005460d
push dword [ebp + 0x14]
call dword [0x100e32c0]
cmp dword [ebp - 8], 0
pop esi
je 0x1005461d
push dword [ebp - 8]
call dword [0x100e32c0]
lea ecx, [ebp - 0x10]
call fcn.1003f96c
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10054b6b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
jne 0x10054b9d
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [esi + 2]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
mov dword [ebp + 0x10], eax
push 0x209
lea ecx, [ebp - 4]
call fcn.10046141
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push str.Device_
mov word [eax], bx
call fcn.10040df5
add esp, 0xc
test al, al
jne 0x10054bf6
push 0xc
push edi
push str.DosDevices_
call fcn.10040df5
add esp, 0xc
test al, al
jne 0x10054bf6
cmp word [edi], bx
je 0x10054bfa
cmp word [edi + 2], bx
je 0x10054bfa
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x10054bfa
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x100cfaec
call fcn.10040df5
mov ebx, dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x10054c1e
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x10054c45
cmp byte [ebp + 0x18], 0
je 0x10054c30
xor eax, eax
mov ax, word [esi]
push eax
call fcn.100432f8
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x10054c56
cmp byte [ebp + 0x18], al
jl 0x10054ca2
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x10054c7e
cmp byte [ebp + 0x18], 0
jle 0x10054ca2
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x10054ca2
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
or eax, 0xe
push eax
call ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
cmp byte [ebp + 0x18], 0
mov esi, eax
jl 0x10054ca2
test esi, esi
jne 0x10054ca2
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x10054c1e
lea ecx, [ebp - 4]
call fcn.1003f96c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret