joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464b88
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x464b9f
add esp, 0xfffffff0
call fcn.00403adc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421454
mov eax, dword [0x46e11c]
cmp word [eax + 2], 0
jne 0x464bc7
mov eax, dword [0x46e11c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466308
mov eax, dword [0x46e1dc]
cmp word [eax + 2], 0
jne 0x464be1
mov eax, dword [0x46e1dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466500
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41682c]
call fcn.00403748
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41682c]
call fcn.00403748
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x423990]
call fcn.0042ada8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x464d68
mov eax, dword [0x46e034]
mov eax, dword [eax]
push eax
call fcn.00406f54
mov edx, eax
mov eax, esi
call fcn.0042b178
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x466ab0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46e034]
mov eax, dword [eax]
push eax
call fcn.00406884
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call fcn.00406f84
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cfe4
test eax, eax
je 0x464cd6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ebc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d00c
test eax, eax
je 0x464cea
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call fcn.00406c1c
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404778
mov eax, dword [0x46df24]
cmp byte [eax], 0
jne 0x464d1e
mov eax, ebx
call fcn.00464e90
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00466c8c
mov eax, ebx
call fcn.00467650
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x464d5e
call fcn.00403b34
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465110
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46fbc0]
cmp dword [eax + 0x30], 0
je 0x4651ba
cmp dword [ebx + 0x94], 0
jne 0x4651b4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4650a0
call fcn.00406d2c
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4651b4
push 3
mov eax, dword [esp + 4]
push eax
call fcn.00406e94
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call fcn.00406ea4
test al, 8
je 0x46517a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4651b4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041907c
push eax
call fcn.00407094
dec esi
cmp esi, 0xffffffff
jne 0x465189
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x465d1c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x465d51
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call fcn.00406ebc
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004045f8
jmp 0x465d5e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040455c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x466e68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x466ea9
mov eax, esi
call fcn.0044d298
test al, al
je 0x466ea9
mov eax, dword [ebx + 0x84]
call fcn.0044cfc0
push eax
call fcn.00406f2c
test eax, eax
je 0x466ea9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044cfc0
push eax
call fcn.004070c4
pop esi
pop ebx
ret

Function at 0x468598
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049b8
lea ebx, [ebp - 0x40]
xor eax, eax
push ebp
push 0x468637
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx], 0x3c
mov eax, dword [ebp - 4]
call fcn.004049c8
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov dword [ebx + 4], 0x44c
mov eax, 0x468648
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 0x24], eax
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 0x20], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [ebx + 0x28], eax
push ebx
call fcn.0042e808
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46863e
lea eax, [ebp - 4]
call fcn.00404508
ret
Function at 0x46872c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov esi, eax
call fcn.004068c4
mov ebx, eax
mov eax, dword [0x46e1bc]
mov eax, dword [eax]
call fcn.0046605c
call fcn.004068c4
mov edx, eax
sub edx, ebx
cmp esi, edx
jle 0x468755
cmp ebx, eax
jle 0x468738
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x46882c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049b8
xor eax, eax
push ebp
push 0x468a0e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4689a3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004049c8
mov edi, eax
push edi
call fcn.004069f4
mov ebx, eax
test ebx, ebx
je 0x468991
mov eax, ebx
call fcn.00402714
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46898a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push edi
call fcn.004069ec
test eax, eax
je 0x468967
lea eax, [ebp - 0x14]
call fcn.00404508
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x468a1c
mov eax, dword [ebp - 0x10]
push eax
call fcn.004069fc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.00407128
mov edx, dword [ebp - 0x18]
mov dx, word [edx]
call fcn.0040711c
lea ecx, [ebp - 0x20]
mov edx, 8
call fcn.00408808
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x468a40
push dword [ebp - 0x20]
push 0x468a58
push dword [esi*4 + 0x46ded8]
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404888
mov eax, dword [ebp - 0x24]
call fcn.004049c8
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004069fc
test eax, eax
je 0x468958
mov eax, dword [ebp - 0x14]
call fcn.004049c8
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00404700
jmp 0x468974
mov eax, dword [ebp - 8]
mov edx, 0x468a64
call fcn.0040455c
jmp 0x468974
mov eax, dword [ebp - 8]
mov edx, 0x468a70
call fcn.0040455c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468999
mov eax, dword [ebp - 0x10]
call fcn.00402734
ret
mov eax, dword [ebp - 8]
call fcn.00404508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4689e3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468a15
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.0040452c
lea eax, [ebp - 0x14]
call fcn.00404508
lea eax, [ebp - 4]
call fcn.00404508
ret

Function at 0x468a88
Capabilities:
Terminate process

Disassembly:
push eax
push 0xffffffffffffffff
push 0x1f0fff
call fcn.0040695c
test eax, eax
jne 0x468a9f
mov eax, 0xfffffffe
ret
push 0
push eax
call fcn.004069b4
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x468ab8
mov eax, 0xfffffffd
jmp 0x468abd
mov eax, 1
ret
Function at 0x469a78
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call fcn.0040682c
push eax
call fcn.0040675c
test eax, eax
je 0x469af2
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x469afc
push 0
call fcn.00406754
cmp byte [esp], 0
je 0x469ac0
mov dword [esp + 0x18], 2
jmp 0x469ac6
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call fcn.0040674c
mov bl, 1
mov eax, dword [esp + 4]
push eax
call fcn.00406794
mov eax, ebx
add esp, 0x1c
pop ebx
ret
Function at 0x46a9fc
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049b8
xor eax, eax
push ebp
push 0x46ab25
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x46aab7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049c8
mov ebx, eax
push ebx
call fcn.0040685c
mov esi, eax
push 0x20
push ebx
call fcn.0040698c
lea eax, [ebp - 8]
mov ecx, 0x46ab3c
mov edx, dword [ebp - 4]
call fcn.00404814
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408c0c
mov eax, dword [ebp - 4]
call fcn.0040291c
call fcn.0040287c
push 0x13
push ebx
call fcn.0040698c
push 0x10
push 0x46ab40
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004086f4
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x46ab50
call fcn.00404814
mov eax, dword [ebp - 0xc]
call fcn.004049c8
push eax
push 0
call fcn.00406f7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46ab0a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ab2c
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.0040452c
ret

Function at 0x46b2c4
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049b8
mov eax, dword [ebp - 8]
call fcn.004049b8
xor eax, eax
push ebp
push 0x46b355
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x46b32b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004049c8
push eax
mov eax, dword [ebp - 4]
call fcn.004049c8
push eax
push 0
call fcn.0042e8b8
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b337
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b35c
lea eax, [ebp - 8]
call fcn.00404508
lea eax, [ebp - 4]
call fcn.00404508
ret
Function at 0x401000
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 0
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x401030
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x4010b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jb 0x4010d4
mov eax, dword [esp + 0x44]
lea ecx, [esp]
push eax
push str..Global_s
push ecx
jmp 0x4010e3
mov edx, dword [esp + 0x44]
lea eax, [esp]
push edx
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x401114
xor eax, eax
add esp, 0x40
ret
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x401127
mov dword [ecx], eax
mov eax, 1
add esp, 0x40
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x40
ret

Function at 0x401140
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401164
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x401270
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.USBSPEEDUP
lea eax, [esp + 0x18]
push str.SYSTEMCurrentControlSetServices_s
push eax
xor esi, esi
call fcn.004038d2
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push 0xf003f
push esi
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401309
mov edx, dword [esp + 8]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push esi
push str.DeleteFlag
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4012fe
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4012fe
mov esi, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x110
ret
Function at 0x401320
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SystemCurrentControlSetServicesUSBSPEEDUP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401371
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.ENUM
push ecx
call esi
mov edx, dword [esp + 4]
push str.SECURITY
push edx
call esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SystemCurrentControlSetServicesUSBSPEEDUP
push 0x80000002
call esi
pop esi
push str.USBSPEEDUP
call fcn.004011d0
mov eax, 1
add esp, 8
ret

Function at 0x401390
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x250
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x104
push eax
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
test ecx, ecx
jne 0x4013d5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x250
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov al, 0x5c
cmp byte [esp + ecx + 0x14], al
je 0x4013f0
dec ecx
jmp 0x4013e7
mov byte [esp + ecx + 0x15], bl
mov edi, str.CBMUSBSys.sys
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x401446
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x250
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00401270
cmp eax, 1
jne 0x401466
call fcn.00401320
pop edi
pop esi
pop ebx
add esp, 0x250
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0x40a030
push eax
push str.USBSPEEDUP
call fcn.00401210
add esp, 0x10
test eax, eax
jne 0x4014ba
push str.USBSPEEDUP
call fcn.004011d0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x40a030
push edx
push str.USBSPEEDUP
call fcn.00401210
add esp, 0x14
test eax, eax
jne 0x4014ba
pop edi
pop esi
pop ebx
add esp, 0x250
ret
lea eax, [esp + 0xc]
push eax
push str.SystemCurrentControlSetServicesUSBSPEEDUP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401508
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.ENUM
push ecx
call esi
mov edx, dword [esp + 0xc]
push str.SECURITY
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SystemCurrentControlSetServicesUSBSPEEDUP
push 0x80000002
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x250
ret
Function at 0x401af0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x328
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x338]
lea ecx, [esp + 0x12c]
push eax
xor esi, esi
push str.SYSTEMCurrentControlSetControlClass_s
push ecx
mov dword [esp + 0x24], esi
call fcn.004038d2
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x12c]
push edx
push 0xf003f
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c98
mov ecx, 0x40
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
mov ebp, dword [esp + 0x340]
stosb byte es:[edi], al
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401c82
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 0xf003f
lea ecx, [esp + 0x34]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c4f
mov ecx, 0x40
lea edi, [esp + 0x235]
mov byte [esp + 0x234], bl
mov edx, dword [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x234]
push eax
push ecx
push ebx
push ebx
push str.InfPath
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x20]
push eax
call esi
lea ecx, [esp + 0x234]
push ebp
push ecx
call fcn.00403930
add esp, 8
test eax, eax
jne 0x401c4f
mov edx, dword [esp + 0x344]
mov ecx, dword [esp + 0x33c]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.00401cb0
add esp, 0xc
test eax, eax
je 0x401c65
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0x104
inc eax
mov dword [esp + 0x18], eax
jmp 0x401b8a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [esp + 0x1c], 1
jmp 0x401b86
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x328
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x328
ret
Function at 0x401fa0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x318
push esi
push edi
mov ecx, 9
mov esi, str.36FC9E60_C465_11CF_8056_444553540000
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x37
lea edi, [esp + 0x3b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x324]
push 5
stosw word es:[edi], ax
push 0x5c
push esi
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 0x104
stosb byte es:[edi], al
call fcn.00401f60
add esp, 0xc
test eax, eax
je 0x4021d3
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4021d3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x21c]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.Driver
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4021c8
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.USB_Mass_Storage_Device
call edi
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push str.USB_Mass_Storage_Device
push 1
push 0
push str.DeviceDesc
push edx
call esi
push str.USB_Device
call edi
inc eax
push eax
mov eax, dword [esp + 0xc]
push str.USB_Device
push 1
push 0
push str.LocationInformation
push eax
call esi
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push str.Capabilities
push edx
call esi
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.UINumber
push ecx
mov dword [esp + 0x24], 0
call esi
lea edx, [esp + 0x14]
push edx
call edi
mov ecx, dword [esp + 8]
inc eax
push eax
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.ClassGUID
push ecx
call esi
push 0x40a3fc
call edi
mov edx, dword [esp + 8]
inc eax
push eax
push 0x40a3fc
push 1
push 0
push str.Class
push edx
call esi
lea eax, [esp + 0x14]
push eax
call fcn.004015a0
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x124]
push str._s_04d
push edx
call fcn.004038d2
add esp, 0x14
lea eax, [esp + 0x118]
push eax
call edi
mov edx, dword [esp + 8]
inc eax
lea ecx, [esp + 0x118]
push eax
push ecx
push 1
push 0
push str.Driver
push edx
call esi
push str.Compatible_USB_Storage
call edi
inc eax
push eax
mov eax, dword [esp + 0xc]
push str.Compatible_USB_Storage
push 1
push 0
push 0x40a3d8
push eax
call esi
push str.USBSTOR
call edi
mov ecx, dword [esp + 8]
inc eax
push eax
push str.USBSTOR
push 1
push 0
push str.Service
push ecx
call esi
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push 0
push str.ConfigFlags
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x318
ret