joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5550
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x55c3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
xor esi, esi
cmp eax, esi
je 0x4b5625
mov ecx, dword [0x67f9a0]
mov ebp, dword [esp + 0x60]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
lea ecx, [esp + 0x24]
push ecx
push esi
push ebp
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0049c100
mov dword [esp + 0x58], esi
lea eax, [esp + 0x1c]
lea edi, [ebx + 0x14]
push eax
call fcn.0049c450
or esi, 0xffffffff
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x1c]
call fcn.0049c2c0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
jne 0x4b5625
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4b562c
cmp eax, 2
je 0x4b562c
mov ecx, dword [0x67f9a0]
push ecx
push 0x65d
lea edx, [esp + 0x24]
push edx
call fcn.0049c100
mov dword [esp + 0x58], 1
lea eax, [esp + 0x1c]
push eax
call fcn.0049c450
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x1c]
call fcn.0049c2c0
xor al, al
jmp 0x4b5739
mov esi, dword [esp + 0x64]
xor eax, eax
mov ecx, esi
call fcn.00499c10
mov ecx, dword [0x67f9a0]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18]
push edx
shr eax, 1
mov ecx, esi
call fcn.004994c0
mov ecx, dword [ebx + 4]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0049c100
mov dword [esp + 0x58], 2
lea eax, [esp + 0x1c]
push eax
call fcn.0049c450
or ebp, 0xffffffff
mov dword [esp + 0x58], ebp
lea ecx, [esp + 0x1c]
call fcn.0049c2c0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
jne 0x4b5625
mov ebx, dword [esp + 0x14]
shr ebx, 1
xor edi, edi
test ebx, ebx
jle 0x4b56c5
jmp 0x4b56b0
mov eax, ebp
mov ecx, esi
call fcn.004994c0
cmp word [eax + edi*2], 0
je 0x4b56c5
inc edi
cmp edi, ebx
jl 0x4b56b0
mov eax, edi
mov ecx, esi
call fcn.00499c10
cmp dword [esp + 0x18], 2
jne 0x4b5737
push 0
push 0
mov eax, esi
call fcn.00408130
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call ebx
lea ecx, [esp + 0x60]
mov edi, eax
call fcn.004992d0
mov dword [esp + 0x58], 3
push edi
mov eax, edi
lea ecx, [esp + 0x64]
call fcn.004994c0
push eax
mov eax, esi
call fcn.00408130
push eax
call ebx
lea eax, [edi - 1]
lea ecx, [esp + 0x60]
call fcn.00499c10
lea eax, [esp + 0x60]
mov edi, esi
call fcn.00499530
mov dword [esp + 0x58], ebp
lea ecx, [esp + 0x60]
call fcn.00499450
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8
Function at 0x4b5850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x668038]
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 esi, ecx
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4b5918
mov ecx, dword [0x67f9a0]
mov ebx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
push edi
lea ecx, [ebp - 0x1c]
push ecx
push edi
push ebx
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea edx, [ebp - 0x58]
push edx
call fcn.0049c100
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
lea edi, [esi + 0x14]
push eax
call fcn.0049c450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0049c2c0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
jne 0x4b5918
cmp dword [ebp - 0x1c], 7
je 0x4b591f
mov ecx, dword [0x67f9a0]
push ecx
push 0x65d
lea edx, [ebp - 0x58]
push edx
call fcn.0049c100
mov dword [ebp - 4], 1
lea eax, [ebp - 0x58]
push eax
call fcn.0049c450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0049c2c0
xor al, al
jmp 0x4b59f7
mov eax, dword [ebp - 0x14]
call fcn.0054f730
mov ecx, dword [0x67f9a0]
mov eax, esp
push ecx
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea edx, [ebp - 0x58]
push edx
call fcn.0049c100
mov dword [ebp - 4], 2
lea eax, [ebp - 0x58]
push eax
call fcn.0049c450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0049c2c0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
jne 0x4b5918
mov esi, dword [ebp + 0xc]
call fcn.00412ae0
mov edi, dword [ebp - 0x14]
xor ebx, ebx
test edi, edi
jbe 0x4b59f5
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + ecx]
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x4b59a0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4b59a0
sub ecx, esi
sar ecx, 1
inc ecx
lea edx, [ecx + ecx]
mov dword [ebp - 0x24], edx
cmp ecx, 1
jne 0x4b59c1
add edx, ebx
cmp edx, edi
jae 0x4b59f5
push 0
or edi, 0xffffffff
lea esi, [ebp - 0x18]
call fcn.004993c0
mov dword [ebp - 4], 3
mov edx, esi
mov esi, dword [ebp + 0xc]
push edx
call fcn.00403540
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x18]
call fcn.00499450
add ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
cmp ebx, edi
jb 0x4b5990
mov al, 1
lea esp, [ebp - 0x68]
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.0054eee2
mov esp, ebp
pop ebp
ret 8
Function at 0x4b5a20
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5677a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x4b5a64
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret 8
mov ecx, dword [0x67f9a0]
push ecx
mov ecx, dword [esp + 0x54]
push 4
lea edx, [esp + 0x5c]
push edx
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0049c100
mov dword [esp + 0x48], 0
lea eax, [esp + 0xc]
lea edi, [esi + 0x14]
push eax
call fcn.0049c450
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0049c2c0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret 8

Function at 0x4b5ae0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5677a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x4b5b23
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret 8
mov eax, dword [0x67f9a0]
mov edi, dword [esp + 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x54]
lea ecx, [eax + eax + 2]
mov eax, dword [esi + 4]
push ecx
push edi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0049c100
mov dword [esp + 0x48], 0
lea edx, [esp + 0xc]
lea edi, [esi + 0x14]
push edx
call fcn.0049c450
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0049c2c0
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret 8
Function at 0x4b5c60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554458
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x668038]
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 dword [ebp - 0x18], ecx
cmp dword [ecx + 4], 0
jne 0x4b5c9b
xor al, al
jmp 0x4b5d92
mov esi, dword [ebp + 0xc]
mov eax, esi
mov ebx, 1
xor edi, edi
call fcn.0049cb10
test eax, eax
jle 0x4b5cce
mov eax, edi
mov ecx, esi
call fcn.0040afd0
call fcn.00499c00
lea ebx, [ebx + eax + 1]
mov eax, esi
inc edi
call fcn.0049cb10
cmp edi, eax
jl 0x4b5cb0
lea eax, [ebx + ebx]
mov dword [ebp - 0x1c], eax
call fcn.0054f730
mov ebx, esp
mov eax, esi
mov dword [ebp - 0x14], ebx
xor edi, edi
call fcn.0049cb10
test eax, eax
jle 0x4b5d2f
jmp 0x4b5cf0
mov eax, edi
mov ecx, esi
call fcn.0040afd0
call fcn.00408130
mov edx, ebx
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4b5d00
mov eax, edi
mov ecx, esi
call fcn.0040afd0
call fcn.00499c00
lea ebx, [ebx + eax*2 + 2]
mov eax, esi
inc edi
call fcn.0049cb10
cmp edi, eax
jl 0x4b5cf0
mov ecx, dword [0x67f9a0]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
push edx
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 4]
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0049c100
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
lea edi, [esi + 0x14]
push ecx
call fcn.0049c450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0049c2c0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x60]
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.0054eee2
mov esp, ebp
pop ebp
ret 8
Function at 0x4b64e3
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4b65ab
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov eax, 0x20
cmp byte [esi + 8], 0
mov dword [esp + 0x10], eax
je 0x4b6549
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.004994c0
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
push ebp
lea eax, [esp + 0x28]
call fcn.004b6820
test al, al
jne 0x4b6578
mov dword [ebp], 0xffffffff
jmp 0x4b6578
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.004994c0
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov dword [ebp], 4
or eax, 0xffffffff
mov ecx, ebx
call fcn.00499c10
cmp edi, 0xea
jne 0x4b6595
mov eax, dword [esp + 0x10]
add eax, eax
jmp 0x4b6500
test edi, edi
pop edi
pop ebp
pop ebx
jne 0x4b65ab
mov eax, 1
add dword [esi + 0xc], eax
pop esi
add esp, 0xc
ret 8
xor al, al
pop esi
add esp, 0xc
ret 8

Function at 0x4b6693
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4b6768
cmp dword [esi + 0xc], 0
mov eax, 0x20
mov dword [esp + 4], eax
jl 0x4b6768
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov edi, edi
cmp byte [esi + 8], 0
je 0x4b6705
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.004994c0
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
push ebp
lea eax, [esp + 0x28]
call fcn.004b6820
test al, al
jne 0x4b6734
mov dword [ebp], 0xffffffff
jmp 0x4b6734
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.004994c0
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov dword [ebp], 4
or eax, 0xffffffff
mov ecx, ebx
call fcn.00499c10
cmp edi, 0xea
jne 0x4b6755
mov eax, dword [esp + 0x10]
add eax, eax
mov dword [esp + 0x10], eax
jmp 0x4b66c0
test edi, edi
pop edi
pop ebp
pop ebx
jne 0x4b6768
dec dword [esi + 0xc]
mov al, 1
pop esi
add esp, 0xc
ret 8
xor al, al
pop esi
add esp, 0xc
ret 8

Function at 0x4b7490
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x668038]
xor eax, esp
mov dword [esp + 0x208], eax
lea eax, [esp]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4b74dc
lea ecx, [esp]
push ecx
mov eax, esi
call fcn.00499510
mov al, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0054eee2
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor al, al
call fcn.0054eee2
add esp, 0x20c
ret
Function at 0x4b9670
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
lea eax, [esp + 0x14]
call fcn.004b9920
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
lea esi, [esp + 0x20]
xor bl, bl
call fcn.004b9a30
test al, al
je 0x4b970a
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4b96ea
lea eax, [esp + 0x14]
call fcn.004b99e0
cmp byte [eax], 0
jne 0x4b96ea
mov al, byte [esp + 0x24]
test al, al
jne 0x4b96d1
mov eax, dword [esp + 0xc]
or dword [eax], edi
mov bl, 1
jmp 0x4b96ea
cmp al, 1
jne 0x4b96ea
mov eax, dword [esp + 0xc]
mov ecx, edi
not ecx
and dword [eax], ecx
jne 0x4b96ea
lea esi, [esp + 0x14]
call fcn.004b9a70
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea esi, [esp + 0x20]
call fcn.004b9a30
test al, al
jne 0x4b96a1
test bl, bl
jne 0x4b9718
push edi
push ebp
push 0
lea edx, [esp + 0x20]
push edx
call fcn.004b9ab0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x4b97e0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
lea eax, [esp + 0x14]
call fcn.004b9920
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
lea esi, [esp + 0x20]
xor bl, bl
call fcn.004b9a30
test al, al
je 0x4b987a
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4b985a
lea eax, [esp + 0x14]
call fcn.004b99e0
cmp byte [eax], 0
jne 0x4b985a
mov al, byte [esp + 0x24]
cmp al, 1
jne 0x4b9841
mov eax, dword [esp + 0xc]
or dword [eax], edi
mov bl, 1
jmp 0x4b985a
test al, al
jne 0x4b985a
mov eax, dword [esp + 0xc]
mov ecx, edi
not ecx
and dword [eax], ecx
jne 0x4b985a
lea esi, [esp + 0x14]
call fcn.004b9a70
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea esi, [esp + 0x20]
call fcn.004b9a30
test al, al
jne 0x4b9811
test bl, bl
jne 0x4b9896
lea eax, [esp + 0x14]
call fcn.004b9a60
mov esi, eax
call fcn.004b9b50
push edi
push ebp
push 1
mov edx, esi
push edx
call fcn.004b9ab0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4c3e20
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5739f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ebp
call ebx
mov esi, eax
test esi, esi
je 0x4c3f2f
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new_1
add esp, 4
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call ebx
test eax, eax
je 0x4c3f26
cmp eax, esi
jae 0x4c3f26
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.004c3f50
add esp, 8
push edi
test al, al
je 0x4c3f27
call sub.mfc90u.dll_delete_1
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004992d0
mov dword [esp + 0x28], 0
movzx edx, word [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push str._1_c_:_
push eax
call fcn.00499d40
add esp, 0xc
lea eax, [esp + 0x18]
call fcn.00408130
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edx, dword [esp + 0x34]
cmp eax, 1
setne cl
mov byte [edx], cl
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00499450
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push edi
call sub.mfc90u.dll_delete_1
add esp, 4
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x4c4450
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
xor edx, edx
mov dword [esp + 4], 0xc
cmp ecx, edx
je 0x4c446e
mov eax, ecx
call fcn.004a2ed0
mov dword [esp + 8], eax
jmp 0x4c4472
mov dword [esp + 8], edx
neg ecx
sbb ecx, ecx
lea eax, [esp + 4]
push ebx
and ecx, eax
push ecx
push esi
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x4c44d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4c44d3
lea ecx, [esp + 7]
push ecx
push esi
mov byte [esp + 0xf], bl
call fcn.004c3e20
add esp, 8
test al, al
je 0x4c44cb
cmp byte [esp + 7], bl
je 0x4c44cb
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
add esp, 0x10
ret
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
add esp, 0x10
ret
Function at 0x4c4c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x561689
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, 3
call fcn.004080a0
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], 0xffffffff
call fcn.004992d0
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x24]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.004992d0
mov byte [esp + 0x14], 2
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], 1
mov byte [esi + 0x2c], bl
call fcn.004992d0
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x4c5100
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x668038]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
lea ecx, [esp]
push ecx
push 1
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c51a6
push edi
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov dword [esp + 4], 0
pop edi
jne 0x4c51a6
cmp dword [esp + 4], 2
jbe 0x4c51a6
lea ecx, [esp + 0xc]
push ecx
mov eax, esi
call fcn.00499510
mov al, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0054eee2
add esp, 0x410
ret
mov ecx, dword [esp + 0x40c]
xor ecx, esp
xor al, al
call fcn.0054eee2
add esp, 0x410
ret
Function at 0x4c5280
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x5615ed
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x668038]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
push 0
mov esi, ecx
push 0x25
push esi
mov dword [esp + 0x38], esi
call fcn.00499b50
mov ebp, eax
test ebp, ebp
jl 0x4c54b9
lea ecx, [esp + 0x18]
call fcn.004992d0
mov dword [esp + 0x248], 0
mov eax, esi
lea esi, [esp + 0x14]
call fcn.004992f0
mov bl, 1
mov byte [esp + 0x248], bl
lea ecx, [ecx]
push ebp
lea eax, [esp + 0x28]
push eax
xor edx, edx
lea ecx, [esp + 0x1c]
call fcn.00499930
mov byte [esp + 0x248], 2
push eax
lea edi, [esp + 0x1c]
call fcn.00499570
mov byte [esp + 0x248], bl
lea ecx, [esp + 0x24]
call fcn.00499450
lea ecx, [esp + 0x30]
push ecx
lea edx, [ebp + 1]
lea ecx, [esp + 0x18]
call fcn.004998c0
mov byte [esp + 0x248], 3
lea edi, [esp + 0x14]
call fcn.00499530
mov byte [esp + 0x248], bl
lea ecx, [esp + 0x30]
call fcn.00499450
push 0
push 0x25
mov edx, edi
push edx
call fcn.00499b50
mov esi, eax
test esi, esi
jl 0x4c546d
push esi
lea eax, [esp + 0x20]
push eax
xor edx, edx
mov ecx, edi
call fcn.00499930
mov byte [esp + 0x248], 4
lea ecx, [esp + 0x28]
push ecx
lea edx, [esi + 1]
mov ecx, edi
call fcn.004998c0
mov byte [esp + 0x248], 5
call fcn.00499530
mov byte [esp + 0x248], 4
lea ecx, [esp + 0x28]
call fcn.00499450
push 0x104
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x24]
call fcn.00408130
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4c5407
mov eax, 0x25
lea ecx, [esp + 0x18]
call fcn.00499600
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x1c]
call fcn.00499570
mov eax, 0x25
mov ecx, edi
call fcn.00499600
jmp 0x4c5443
cmp eax, 0x104
jae 0x4c5443
push 0
or edi, 0xffffffff
lea eax, [esp + 0x38]
lea esi, [esp + 0x24]
call fcn.004993c0
mov byte [esp + 0x248], 6
mov ecx, esi
push ecx
lea edi, [esp + 0x1c]
call fcn.00499570
mov byte [esp + 0x248], 4
mov ecx, esi
call fcn.00499450
push 0
push 0x25
lea edx, [esp + 0x1c]
push edx
call fcn.00499b50
mov ebp, eax
mov byte [esp + 0x248], bl
lea ecx, [esp + 0x1c]
call fcn.00499450
test ebp, ebp
jge 0x4c5300
jmp 0x4c547b
mov eax, 0x25
lea ecx, [esp + 0x18]
call fcn.00499600
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x1c]
call fcn.00499570
mov eax, edi
mov edi, dword [esp + 0x2c]
call fcn.00499530
mov byte [esp + 0x248], 0
lea ecx, [esp + 0x14]
call fcn.00499450
mov dword [esp + 0x248], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00499450
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0054eee2
add esp, 0x238
ret