joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430470
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x489287
mov eax, dword fs:[0]
push eax
sub esp, 0x7e0
push ebx
push ebp
push esi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x7f0]
mov dword fs:[0], eax
mov eax, dword [0x4b9124]
mov eax, dword [eax - 0xc]
xor ebx, ebx
or ebp, 0xffffffff
cmp eax, ebx
jg 0x43061b
call fcn.0044d630
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4304cb
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
cmp edi, ebx
mov dword [esp + 0x7f8], ebx
push 0x5f
lea ecx, [esp + 0x14]
je 0x4304f3
push 0x49b840
jmp 0x4304f8
push 0x49b8a0
call fcn.004068a0
mov esi, dword [esp + 0x10]
push ebx
push 4
push esi
call fcn.0044f968
cmp eax, 7
je 0x430545
lea ecx, [esp + 0x18]
push ecx
call fcn.00412370
lea ecx, [esp + 0x18]
mov byte [esp + 0x7f8], 1
call fcn.00451b98
mov edx, dword [0x4b9124]
cmp dword [edx - 0xc], ebx
jg 0x430571
lea ecx, [esp + 0x18]
mov byte [esp + 0x7f8], bl
call fcn.00412470
or ebp, 0xffffffff
lea eax, [esi - 0x10]
mov dword [esp + 0x7f8], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4306b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4306b8
cmp edi, ebx
jne 0x430645
push str.forgetset.dat
lea ecx, [esp + 0x18]
push 0x4b9130
push ecx
call fcn.00406070
add esp, 0xc
mov byte [esp + 0x7f8], 2
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4305e0
push ebx
push ebx
push 0x49b900
mov dword [0x4b8f58], ebx
call fcn.0044f968
lea ecx, [esp + 0x14]
call fcn.00401f20
lea ecx, [esp + 0x18]
mov byte [esp + 0x7f8], bl
call fcn.00412470
lea ecx, [esp + 0x10]
call fcn.00401f20
jmp 0x4306b8
lea ecx, [esp + 0x14]
call fcn.00401f20
lea ecx, [esp + 0x18]
mov byte [esp + 0x7f8], bl
call fcn.00412470
lea eax, [esi - 0x10]
mov dword [esp + 0x7f8], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43061b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
jne 0x43067f
push 3
lea ecx, [esp + 0x1c]
push ecx
call fcn.0043ff30
lea ecx, [esp + 0x18]
mov dword [esp + 0x7f8], 3
call fcn.00451b98
lea ecx, [esp + 0x18]
jmp 0x4306ac
call fcn.004152b0
test eax, eax
je 0x4305e9
push ebx
push ebx
push 0x49b920
mov dword [0x4b8f58], 1
call fcn.0044f968
lea ecx, [esp + 0x18]
mov byte [esp + 0x7f8], bl
call fcn.00412470
lea ecx, [esp + 0x10]
call fcn.00401f20
jmp 0x4306b8
push 2
lea edx, [esp + 0x408]
push edx
call fcn.0043ff30
lea ecx, [esp + 0x404]
mov dword [esp + 0x7f8], 4
call fcn.00451b98
lea ecx, [esp + 0x404]
mov dword [esp + 0x7f8], ebp
call fcn.00440050
mov ecx, dword [esp + 0x7f0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x7ec
ret
Function at 0x433a40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486820
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.0044d630
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x433a87
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
push str..hjm
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00406070
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00406820
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433add
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x14]
push ecx
lea ebx, [ebp - 0x18]
mov eax, 0x4b61ac
call fcn.004160e0
test eax, eax
je 0x433b17
mov eax, dword [eax + 4]
push eax
call fcn.0046b8f1
add esp, 4
mov ebx, edi
call fcn.0042cef0
jmp 0x433b17
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x433b43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x433b60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, eax
mov eax, dword [esi]
push edi
push eax
mov edi, 1
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x433b97
mov esi, dword [esi]
push edi
xor eax, eax
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret
mov ecx, dword [esi]
xor eax, eax
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], str.open
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x40]
pop edi
mov dword [ebx], ecx
pop esi
add esp, 0x3c
ret
Function at 0x435280
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4b47a8]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push esi
mov esi, dword [eax]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00468ce5
add esp, 0x10c
ret 4

Function at 0x4352f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x4b47a8]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
mov ebp, dword [esp + 0x220]
mov eax, dword [ebp]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, eax
cmp ebx, 0x20
mov dword [esp + 0xc], ebx
ja 0x435415
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str..htm
push SysReAllocString
call esi
test eax, eax
jne 0x435424
lea ecx, [esp + 0x10]
push ecx
lea edi, [esp + 0x1c]
call fcn.00435280
test eax, eax
jne 0x435424
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
mov edx, edi
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push 1
push 0
mov ecx, edi
push ecx
push SysReAllocString
call esi
test eax, eax
jne 0x43541e
lea edx, [esp + 0x10]
push edx
call fcn.00435280
test eax, eax
jne 0x43541e
mov eax, edi
push str.__1_
push eax
call fcn.0046a65b
mov esi, eax
add esp, 8
test esi, esi
jne 0x4353e2
mov ecx, edi
push 0x49c51c
push ecx
call fcn.0046a65b
mov esi, eax
add esp, 8
test esi, esi
jne 0x4353e2
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x17]
jmp 0x4353e5
mov byte [esi], 0
push 0x49c520
push esi
call ebx
mov eax, dword [ebp]
push eax
push esi
call ebx
call dword [0x4b5a8c]
push 5
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jbe 0x435426
mov dword [ebp + 4], 1
jmp 0x435426
mov dword [ebp + 4], 1
jmp 0x435428
mov eax, dword [esp + 0x14]
jmp 0x435426
mov eax, ebx
pop edi
pop esi
mov ecx, dword [esp + 0x218]
pop ebp
pop ebx
xor ecx, esp
call fcn.00468ce5
add esp, 0x214
ret 4
Function at 0x435650
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4877b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
add ebx, 8
push 0
push 0x494704
mov ecx, ebx
mov dword [esp + 0x24], ebx
call fcn.004068a0
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call edi
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00446d76
add esp, 4
mov ebp, eax
push ebp
push esi
mov dword [esp + 0x2c], ebp
call edi
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4356b7
sub eax, edx
mov esi, eax
mov dword [esp + 0x20], esi
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4356e2
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
test esi, esi
mov dword [esp + 0x30], 0
ja 0x435747
mov edx, dword [esp + 0x24]
push edx
call fcn.00446d7b
add edi, 0xfffffff0
add esp, 4
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43572f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebx, dword [esp + 0x1c]
test ebp, ebp
jne 0x43574f
xor eax, eax
jmp 0x43575f
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x435754
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.004068a0
mov edi, dword [esp + 0x18]
mov esi, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x435790
push esi
lea ecx, [esp + 0x1c]
call fcn.00406390
mov edi, dword [esp + 0x18]
lea ecx, [esi + 1]
push ecx
push edi
call fcn.0046c074
push eax
call fcn.004112a0
add esp, 0xc
test esi, esi
jl 0x43582e
cmp esi, dword [edi - 8]
jg 0x43582e
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
cmp dword [edi - 0xc], 0
jl 0x43582e
mov eax, dword [ebx]
mov ebx, dword [eax - 0xc]
mov dl, byte [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebx + 1]
sub eax, esi
or eax, ecx
mov byte [esp + 0x17], dl
jge 0x4357e6
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00406390
test esi, esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dl, byte [esp + 0x17]
mov byte [eax + ebx], dl
jl 0x43582e
mov eax, dword [ecx]
cmp esi, dword [eax - 8]
jg 0x43582e
mov dword [eax - 0xc], esi
mov eax, dword [ecx]
mov ecx, dword [esp + 0x20]
lea ebp, [ecx + ebp + 1]
mov byte [esi + eax], 0
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x435814
sub eax, edx
mov dword [esp + 0x20], eax
jne 0x435743
jmp 0x4356fe
push 0x80070057
call fcn.00401db0
int3
Function at 0x435840
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x24
mov eax, dword [0x4b47a8]
xor eax, esp
mov dword [esp + 0x20], eax
xor eax, eax
push esi
push str.driverparam.ini
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
mov byte [esp + 0x26], al
lea eax, [esp + 8]
push 0x4b90c8
push eax
call fcn.00406070
mov eax, dword [eax]
push 0
push eax
call fcn.0046b81d
xor ecx, ecx
add esp, 0x14
cmp eax, 0xffffffff
mov eax, dword [esp + 4]
setne cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4358bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
pop esi
lea ecx, [esp]
je 0x4358cc
push str.driverparam.ini
jmp 0x4358d1
push str.param.ini
push 0x4b90c8
push ecx
call fcn.00406070
mov edx, dword [eax]
add esp, 0xc
push edx
push 0x1a
lea eax, [esp + 0xc]
push eax
push 0x494704
push str.Hide
push str.DRIVER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43591d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x435924
sub eax, edx
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, edi
call fcn.004068a0
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00468ce5
add esp, 0x24
ret
Function at 0x435950
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x24
mov eax, dword [0x4b47a8]
xor eax, esp
mov dword [esp + 0x20], eax
xor eax, eax
push esi
push str.driverparam.ini
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
mov byte [esp + 0x26], al
lea eax, [esp + 8]
push 0x4b90c8
push eax
call fcn.00406070
mov eax, dword [eax]
push 0
push eax
call fcn.0046b81d
xor ecx, ecx
add esp, 0x14
cmp eax, 0xffffffff
mov eax, dword [esp + 4]
setne cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4359cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
pop esi
lea ecx, [esp]
je 0x4359dc
push str.driverparam.ini
jmp 0x4359e1
push str.param.ini
push 0x4b90c8
push ecx
call fcn.00406070
mov edx, dword [eax]
add esp, 0xc
push edx
push 0x1a
lea eax, [esp + 0xc]
push eax
push 0x494704
push str.Disable
push str.DRIVER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435a2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x435a34
sub eax, edx
push eax
lea ecx, [esp + 8]
push ecx
lea ecx, [edi + 4]
call fcn.004068a0
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00468ce5
add esp, 0x24
ret
Function at 0x435d10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48777b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4b47a8]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0046c870
add esp, 0xc
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
call fcn.00406500
mov dword [esp + 0x11c], 0
mov edx, dword [esp + 8]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x435dab
push esi
lea ecx, [esp + 0xc]
call fcn.00406390
mov edx, dword [esp + 8]
lea eax, [esi + 1]
push eax
push edx
call fcn.0046c074
push eax
call fcn.004112a0
add esp, 0xc
test esi, esi
jl 0x435de0
mov eax, dword [esp + 8]
cmp esi, dword [eax - 8]
jg 0x435de0
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 8]
mov byte [esi + ecx], 0
mov eax, dword [esp + 8]
cmp dword [eax - 0xc], 0
jge 0x435dea
push 0x80070057
call fcn.00401db0
mov cl, byte [eax]
cmp cl, byte [esp + 0x124]
jne 0x435e35
push 0
push 0
push 0x49c530
call fcn.0044f968
mov dword [esp + 0x11c], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435e2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x435e5e
add eax, 0xfffffff0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435e5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00468ce5
add esp, 0x118
ret 4
Function at 0x435f80
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x48a286
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4b47a8]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x230]
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x435fdb
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
movsx esi, bl
push esi
lea ecx, [esp + 0x18]
push str._c:_
push ecx
mov dword [esp + 0x234], 0
call fcn.004067e0
push 0x200
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.0046c870
mov edi, dword [esp + 0x2c]
add esp, 0x18
push 0x200
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x436156
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x436054
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
lea ecx, [esp + 0x14]
push 0x49c848
push ecx
mov byte [esp + 0x234], 1
call fcn.004067e0
push str.driverparam.ini
lea edx, [esp + 0x28]
push 0x4b90c8
push edx
call fcn.00406070
mov eax, dword [eax]
mov esi, dword [esp + 0x28]
add esp, 0x18
push eax
lea eax, [esp + 0x20]
push eax
push esi
push str.DRIVER
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4360cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
test eax, eax
je 0x436132
push 1
push ebx
mov ecx, ebp
call fcn.00435a60
lea eax, [esi - 0x10]
mov byte [esp + 0x228], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436104
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x228], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43612b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x43617f
lea eax, [esi - 0x10]
mov byte [esp + 0x228], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436156
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x228], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43617d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00468ce5
add esp, 0x21c
ret 4
Function at 0x436670
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4867c0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
mov dword [esp + 0x58], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x4367b0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
sub eax, 0x10
push eax
mov dword [esp + 0x24], edx
call fcn.00406990
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 1
mov ecx, dword [eax - 0xc]
lea edi, [esp + 0x18]
mov dword [esp + 0x1c], ecx
xor ebx, ebx
call fcn.00424fb0
cmp dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x18]
jle 0x43677c
test esi, esi
jl 0x4367c7
cmp esi, dword [edi - 0xc]
jg 0x4367c7
movsx edx, byte [esi + edi]
fld qword [0x49f280]
sub edx, 0x41
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
call fcn.00480940
test ebx, ebx
mov dword [esp + 0x24], ebx
fild dword [esp + 0x24]
jge 0x43674f
fadd qword [0x49f278]
fnstcw word [esp + 0x10]
add esi, 1
movzx eax, word [esp + 0x10]
faddp st(1)
or eax, 0xc00
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x24]
mov ebx, dword [esp + 0x24]
fldcw word [esp + 0x10]
jl 0x436712
mov esi, dword [esp + 0x14]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.NoViewOnDrive
push esi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4367d1
push esi
call ebx
xor esi, esi
mov dword [esp + 0x20], esi
jmp 0x4367d5
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401db0
mov esi, dword [esp + 0x20]
push str.driverparam.ini
lea ecx, [esp + 0x28]
push 0x4b90c8
push ecx
call fcn.00406070
mov eax, dword [eax]
add esp, 0xc
push eax
push edi
push str.Disable
push str.DRIVER
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436820
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
add edi, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436852
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
test esi, esi
je 0x436859
push esi
call ebx
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4