joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4571bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], ecx
mov eax, 0x4676fc
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], 5
mov ebx, dword [edx]
xor dword [ecx], ebx
mov ebx, dword [edx + 4]
xor dword [ecx + 4], ebx
add edx, 8
mov esi, dword [ecx + 4]
shr esi, 0x17
and esi, 0x1fe
mov esi, dword [eax + esi*4]
mov edi, dword [ecx + 4]
shr edi, 0xf
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x800]
mov edi, dword [ecx + 4]
shr edi, 7
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x1000]
mov edi, dword [ecx + 4]
add edi, edi
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x1800]
mov ebx, dword [ecx]
mov edi, ebx
shr edi, 0x17
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x2000]
mov edi, ebx
shr edi, 0xf
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x2800]
mov edi, ebx
shr edi, 7
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x3000]
mov edi, ebx
add edi, edi
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x3800]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 4]
shr esi, 0x17
and esi, 0x1fe
or esi, 1
mov esi, dword [eax + esi*4]
mov edi, dword [ecx + 4]
shr edi, 0xf
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x800]
mov edi, dword [ecx + 4]
shr edi, 7
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x1000]
mov edi, dword [ecx + 4]
add edi, edi
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x1800]
mov edi, dword [ecx]
shr edi, 0x17
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x2000]
mov edi, dword [ecx]
shr edi, 0xf
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x2800]
mov edi, ebx
shr edi, 7
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x3000]
add ebx, ebx
and ebx, 0x1fe
or ebx, 1
xor esi, dword [eax + ebx*4 + 0x3800]
mov dword [ecx + 4], esi
mov ebx, dword [ebp - 0x14]
mov dword [ecx], ebx
dec dword [ebp - 0x10]
jne 0x4571de
mov eax, dword [edx]
xor dword [ecx], eax
mov eax, dword [edx + 4]
xor dword [ecx + 4], eax
add edx, 8
mov eax, dword [ecx]
mov ebx, eax
shr ebx, 0x18
and ebx, 0xff
movzx ebx, byte [ebx + 0x4674bc]
shl ebx, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + 0x4674bc]
shl esi, 0x10
xor ebx, esi
mov esi, eax
shr esi, 8
and esi, 0xff
movzx esi, byte [esi + 0x4674bc]
shl esi, 8
xor ebx, esi
and eax, 0xff
movzx eax, byte [eax + 0x4674bc]
xor ebx, eax
mov dword [ecx], ebx
mov eax, dword [ecx + 4]
mov ebx, eax
shr ebx, 0x18
and ebx, 0xff
movzx ebx, byte [ebx + 0x4674bc]
shl ebx, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + 0x4674bc]
shl esi, 0x10
xor ebx, esi
mov esi, eax
shr esi, 8
and esi, 0xff
movzx esi, byte [esi + 0x4674bc]
shl esi, 8
xor ebx, esi
and eax, 0xff
movzx eax, byte [eax + 0x4674bc]
xor ebx, eax
mov dword [ecx + 4], ebx
mov eax, dword [edx]
xor eax, dword [ecx]
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [edx + 4]
xor eax, dword [ecx + 4]
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 4], eax
jmp 0x457e52
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
cmp edx, dword [eax]
jne 0x457e4e
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x457ea9
xor eax, eax
push ebp
push 0x457ea2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457ea9
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x458d60
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
lea eax, [ebp - 0x160]
mov edx, dword [0x4074c0]
call fcn.00404224
xor eax, eax
push ebp
push 0x458f83
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
mov edx, esi
call fcn.00403c4c
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 4]
call fcn.0040826c
mov al, byte [0x458f90]
push eax
lea eax, [ebp - 0x168]
push eax
mov ecx, 0x458f9c
mov edx, 0x458fa8
mov eax, dword [ebp - 4]
call fcn.0040ba38
mov edx, dword [ebp - 0x168]
lea eax, [ebp - 4]
call fcn.00403a9c
lea eax, [ebp - 0x16c]
push eax
mov eax, dword [ebp - 4]
call fcn.00403c84
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.00403e8c
mov eax, dword [ebp - 0x16c]
mov edx, 0x458f9c
call fcn.00403d94
jne 0x458e43
mov eax, dword [ebp - 4]
call fcn.00403c84
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00403ecc
test bx, bx
je 0x458f1e
lea eax, [ebp - 0x170]
mov ecx, 0x458fb4
mov edx, dword [ebp - 4]
call fcn.00403cd0
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x160]
mov edx, 0x3f
call fcn.00408650
test eax, eax
jne 0x458f13
mov eax, dword [ebp - 0x154]
mov edx, 0x458fc4
call fcn.00403d94
je 0x458f00
mov eax, dword [ebp - 0x154]
mov edx, 0x458fd0
call fcn.00403d94
je 0x458f00
push dword [ebp - 4]
push 0x458f9c
push dword [ebp - 0x154]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403d44
push 0x20
mov eax, dword [ebp - 8]
call fcn.00403e48
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x158]
mov edx, eax
or edx, 0x10
cmp edx, eax
jne 0x458ef8
lea eax, [ebp - 0x174]
mov edx, dword [ebp - 8]
call fcn.0040413c
mov eax, dword [ebp - 0x174]
mov edx, ebx
call fcn.00458d60
jmp 0x458f00
mov eax, dword [ebp - 8]
call fcn.004086e0
lea eax, [ebp - 0x160]
call fcn.004086a0
test eax, eax
je 0x458e7d
lea eax, [ebp - 0x160]
call fcn.004086c4
push 0x20
mov eax, dword [ebp - 4]
call fcn.00403e48
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.00403e48
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458f8a
lea eax, [ebp - 0x174]
call fcn.00404034
lea eax, [ebp - 0x170]
mov edx, 4
call fcn.00403a28
lea eax, [ebp - 0x160]
mov edx, dword [0x4074c0]
call fcn.004042f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403a28
ret
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul esi
imul eax
and edi, 0x2a
inc edx
rol edx, 0x80
rcl eax, 0x1e
not ebx
rcl edx, 0x9a
sbb esi, 0xc3
inc eax
bswap eax
and edi, 0x75
neg ebx
rcr ebx, 0x9a
or eax, 0xf3
and ebx, 0x73
add edx, 0x3a
inc eax
ror esi, 0x77
dec ebx
imul ebx
inc edx
add edi, 0x86
sbb eax, 0x19
sub edi, 0x99
and ebx, 0xb9
inc eax
neg ebx
imul edi
bswap esi
rol edi, 0xc4
neg ebx
sbb edx, 0xfe
sbb edi, 0xb
not edx
imul eax
bswap edx
ror eax, 0x10
rcl eax, 0x26
sub eax, 0x6e
neg ebx
inc edi
bswap edx
rol eax, 0xf9
and edi, 0xdb
rcr esi, 0xce
not ebx
not edx
rol edi, 0x5a
imul eax
xor ecx, ecx
xor edi, edi
inc eax
or edi, 0xa7
imul esi
add edx, 0xf1
and ebx, 0xdd
rcl ebx, 0xc9
sub edx, 0x9f
neg ebx
bswap esi
and esi, 0x59
add edx, 0x64
rcr eax, 0x58
or eax, 0xdc
imul edi
bswap edi
sub edi, 0x46
or esi, 0xa5
mov edx, 0
mov edi, 0xe9
mov esi, 0xcc
add edx, 0x21
inc edx
rcr ebx, 0x33
dec edi
imul ebx
sub esi, 0x90
mov esi, 0x55
and ebx, 0x50
or ebx, 0x13
not eax
and esi, 0x24
ror esi, 0xf9
rol eax, 0x28
rol edi, 0x31
not ebx
rcr edi, 0xf7
dec eax
dec ebx
rcl esi, 0x82
sbb esi, 0x79
mov eax, 0xba
imul ebx
dec edi
ror edx, 0x71
rcr esi, 0x24
or esi, 0xef
imul eax
rol edx, 0x68
rcl edi, 0x8e
imul edi
mov ecx, dword [ebp + 0xc]
mov edx, 0xe6
or esi, 0x99
imul edx
neg edx
add edi, 0xf3
mov edx, 0xc1
bswap edx
sbb ebx, 0x56
ror esi, 0xa5
dec esi
sub edi, 0x1a
imul ebx
neg edi
not edi
or esi, 0x3c
not ebx
sbb ebx, 0xbf
not ebx
inc edx
add edi, 0xa8
rcl esi, 0xd5
inc eax
not edx
add edi, 0xc7
or edx, 0x8c
ror ebx, 0x53
inc ebx
sbb ebx, 0xf7
imul eax
mov ebx, 0xbc
neg esi
add edi, 0xfd
bswap eax
sub esi, 0xc1
ror edx, 0x8d
imul ebx
and ebx, 0xb8
imul edx
sbb esi, 0x20
ror edx, 0x9e
neg edx
ror ebx, 0x62
or esi, 0xff
or ebx, 0x5f
imul esi
sub edx, 0x1b
dec eax
dec esi
add esi, 0x80
imul eax
mov edi, dword [ebp + 8]
mov ebx, eax
mov ebx, eax
xor esi, esi
not byte [edi]
xor esi, ebx
mov ebx, esi
mov eax, esi
sub byte [edi], 0x88
mov ebx, eax
xor esi, eax
xor esi, eax
add byte [edi], 0x49
mov esi, esi
xor esi, esi
mov esi, esi
imul byte [edi]
inc edi
loop 0x4013e3
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4075f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4108f0]
jne 0x4075fe
repz ret
jmp fcn.0040b55c
Function at 0x407f63
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040588a
and dword [ebp - 4], 0
cmp dword [0x4115d4], 0
mov ebx, eax
jne 0x408014
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4080c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4080c5
push eax
call fcn.00405818
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4115d4], eax
call esi
push eax
call fcn.00405818
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4115d8], eax
call esi
push eax
call fcn.00405818
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4115dc], eax
call esi
push eax
call fcn.00405818
pop ecx
mov dword [0x4115e4], eax
test eax, eax
je 0x408014
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405818
pop ecx
mov dword [0x4115e0], eax
mov eax, dword [0x4115e0]
cmp eax, ebx
je 0x40806c
cmp dword [0x4115e4], ebx
je 0x40806c
push eax
call fcn.00405893
push dword [0x4115e4]
mov esi, eax
call fcn.00405893
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40806c
test edi, edi
je 0x40806c
call esi
test eax, eax
je 0x408063
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408063
test byte [ebp - 0xc], 1
jne 0x40806c
or dword [ebp + 0x10], 0x200000
jmp 0x4080a5
mov eax, dword [0x4115d8]
cmp eax, ebx
je 0x4080a5
push eax
call fcn.00405893
pop ecx
test eax, eax
je 0x4080a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4080a5
mov eax, dword [0x4115dc]
cmp eax, ebx
je 0x4080a5
push eax
call fcn.00405893
pop ecx
test eax, eax
je 0x4080a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4115d4]
call fcn.00405893
pop ecx
test eax, eax
je 0x4080c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4080c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
lea ecx, [esp]
push esi
mov esi, dword [esp + 0x5c]
lea edx, [esp + 0x14]
xor eax, eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x68], eax
mov word [esp + 0x6e], ax
mov dword [esp + 0x70], eax
mov word [esp + 0x6c], 5
mov dword [0x41c2fc], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40105b
or eax, 0xffffffff
pop esi
add esp, 0x54
ret
push esi
push str.waiting___s_..._n
call fcn.004033c4
mov eax, dword [esp + 0xc]
add esp, 8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
push 0x41c2fc
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 4]
push eax
call esi
xor eax, eax
pop esi
add esp, 0x54
ret

Function at 0x4010b0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x108
lea eax, [esp]
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40110f
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40110f
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x114]
lea eax, [esi - 1]
lea ecx, [esp + 0xc]
push eax
push ecx
push edi
call fcn.00403410
add esp, 0xc
mov byte [edi + esi - 1], 0
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
or eax, 0xffffffff
add esp, 0x108
ret
Function at 0x401120
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
push edi
or ebp, 0xffffffff
push 0
push 2
mov dword [esp + 0x18], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x40132a
push 0x27ff
push 0x419298
call fcn.004010b0
add esp, 8
test eax, eax
je 0x401168
mov byte [0x419298], 0
jmp 0x401195
mov edi, str.WBC_FT_STC_Vag
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x419298
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40132a
mov ecx, dword [esp + 0x144]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.004037c0
mov ebx, dword [esp + 0x150]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
add esp, 8
test eax, eax
jne 0x401263
mov eax, dword [esp + 0x20]
push eax
push 0
push 0x1f0fff
call ebp
mov esi, eax
test esi, esi
je 0x401263
mov ecx, dword [esp + 0x14c]
mov edx, dword [esp + 0x28]
push ecx
push ebx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x401303
mov al, byte [0x419298]
test al, al
je 0x401235
mov edi, 0x419298
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x419298
push ebx
call fcn.004036b0
add esp, 0xc
test eax, eax
jne 0x40125c
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x401312
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4012fa
mov edx, dword [esp + 0x144]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.004037c0
add esp, 8
test eax, eax
jne 0x401263
mov ecx, dword [esp + 0x20]
push ecx
push eax
push 0x1f0fff
call ebp
mov esi, eax
test esi, esi
je 0x401263
mov edx, dword [esp + 0x14c]
mov eax, dword [esp + 0x28]
push edx
push ebx
push eax
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x401303
mov al, byte [0x419298]
test al, al
je 0x401235
mov edi, 0x419298
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x419298
push ebx
call fcn.004036b0
add esp, 0xc
test eax, eax
je 0x401235
jmp 0x40125c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
Function at 0x401340
Capabilities:
Delete service

Disassembly:
push ebx
push esi
xor ebx, ebx
push 0x400f003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x401393
mov eax, dword [esp + 0xc]
push ebp
push edi
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x401389
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x401386
mov ebx, 1
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
ret
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4015c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x808
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
mov ebp, dword [esp + 0x814]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], 0x400
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
lea eax, [esp + 0x420]
push str._s_04d
push eax
call fcn.004039db
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x418]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call edi
test eax, eax
jne 0x4016b6
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push str.DriverDesc
push edx
mov dword [esp + 0x28], 0x400
call ebx
test eax, eax
jne 0x401679
cmp dword [esp + 0x10], 0x400
ja 0x401679
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x18]
test eax, eax
push ecx
je 0x4016dd
push 0x415524
call fcn.004033c4
add esp, 8
jmp 0x401691
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4154f4
call fcn.004033c4
add esp, 4
inc esi
cmp esi, 0x63
jl 0x4015e7
push ebp
push 0x4154d8
call fcn.004033c4
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
lea eax, [esp + 0x418]
push eax
push 0x4154bc
push 0x415d80
call fcn.0040350e
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
push 0x4154b0
call fcn.004033c4
mov ecx, dword [esp + 0x1c]
add esp, 8
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
mov esi, 0x400
push str.DriverVersion
push ecx
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x401753
cmp dword [esp + 0x10], esi
ja 0x401753
lea edx, [esp + 0x18]
push edx
push 0x41c298
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
jne 0x40176b
lea eax, [esp + 0x18]
push eax
push 0x415488
call fcn.004033c4
mov eax, dword [esp + 0x1c]
add esp, 8
mov byte [0x41c298], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x415460
call fcn.004033c4
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x401780
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x808
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
mov dword [esp + 0x14], 0x400
xor edi, edi
push edi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
lea eax, [esp + 0x20]
push str._s_04d
push eax
call fcn.004039db
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call ebx
test eax, eax
jne 0x401838
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x418]
push eax
push ecx
push 0
push 0
push str.DriverDesc
push edx
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call ebp
test esi, esi
jne 0x40182e
cmp dword [esp + 0x14], 0x400
ja 0x40182e
mov ecx, dword [esp + 0x81c]
lea edx, [esp + 0x418]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401845
inc edi
cmp edi, 0x63
jl 0x4017a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call ebx
test eax, eax
jne 0x401838
push edi
lea ecx, [esp + 0x1c]
push str._04d
push ecx
call fcn.004039db
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call ebp
mov ecx, dword [esp + 0x10]
mov eax, esi
neg eax
sbb eax, eax
pop edi
not eax
pop esi
pop ebp
and eax, ecx
pop ebx
add esp, 0x808
ret
Function at 0x4053c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x4f3008]
xor eax, esp
mov dword [esp + 0x260], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], eax
call fcn.00405340
mov ecx, dword [0x4f53f0]
xor edi, edi
mov edx, dword [0x4f53ec]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x4faeb4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], edx
mov esi, dword [ecx + 0x258]
mov ecx, dword [ecx + 0x25c]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x4fafa8]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x4fafb0]
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], ecx
test eax, eax
jle 0x4055a3
mov eax, edx
neg eax
mov dword [esp + 0x28], eax
nop word [eax + eax]
push edi
lea eax, [esp + 0x6c]
push 0x4c4404
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
push ecx
push 0x400
push 1
lea ecx, [esp + 0x1c]
push ecx
push 0x4bf530
push ebx
call dword [eax + 0x14]
test eax, eax
js 0x4054d0
mov eax, dword [ebx]
lea ecx, [esp + 0x58]
push 0
push 0
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x5c], 0
push ecx
push 2
push 0x800
push 0x4bf530
push dword [esp + 0x38]
mov dword [esp + 0x68], 0
push ebx
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], 0
call dword [eax + 0x18]
mov eax, dword [0x4faeb4]
mov eax, dword [eax + 0x264]
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x60]
cdq
idiv ecx
mov esi, edx
imul esi, dword [esp + 0x20]
sub esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x28]
jl 0x405598
mov eax, dword [esp + 0x60]
cdq
idiv ecx
mov ecx, dword [esp + 0x2c]
imul eax, ecx
neg ecx
sub eax, dword [esp + 0x30]
cmp eax, ecx
jl 0x405598
cmp esi, dword [esp + 0x34]
jge 0x405598
cmp eax, dword [esp + 0x38]
jge 0x405598
mov ecx, dword [0x4f53ec]
lea ebx, [esi + 1]
inc eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
mov eax, dword [0x4f53f0]
add eax, 0xfffffffe
lea edx, [ecx - 2]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
cmp eax, ecx
jg 0x40554e
mov ecx, eax
jmp 0x40557d
push dword [esp + 0x18]
lea esi, [ecx + ecx]
mov ecx, dword [esp + 0x18]
sub esi, eax
sub esi, 2
push esi
mov eax, dword [ecx]
push 1
push dword [ebp + 0x10]
push dword [esp + 0x20]
push ebx
push ecx
call dword [eax + 0x3c]
mov edx, dword [ebp + 0x10]
add ebx, esi
sub edx, dword [esp + 0x3c]
mov ecx, 1
push dword [esp + 0x18]
mov esi, dword [esp + 0x18]
push edx
push 1
push ecx
push dword [esp + 0x20]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x3c]
mov ebx, dword [esp + 0x40]
inc edi
cmp edi, dword [esp + 0x44]
jl 0x405450
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 0xc