joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101622f0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101624d4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x119000]
push edi
jmp 0x1016231a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10162321
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10162310
mov eax, 1
add ebx, ebx
jne 0x10162333
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10162344
jne 0x10162363
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10162363
dec eax
add ebx, ebx
jne 0x10162350
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10162328
add ebx, ebx
jne 0x1016235f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101623b5
xor ecx, ecx
sub eax, 3
jb 0x1016237b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101623ea
sar eax, 1
mov ebp, eax
jmp 0x10162386
add ebx, ebx
jne 0x10162386
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10162354
inc ecx
add ebx, ebx
jne 0x10162394
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10162354
add ebx, ebx
jne 0x101623a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10162396
jne 0x101623b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10162396
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101623d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101623c6
jmp 0x10162316
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101623d4
add edi, ecx
jmp 0x10162316
pop esi
mov edi, esi
mov ecx, 0x16cd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101623f2
cmp byte [edi], 0x11
jne 0x101623f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x101623f7
lea edi, [esi + 0x15e000]
mov eax, dword [edi]
or eax, eax
je 0x10162466
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x162000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x162140]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10162424
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x162144]
or eax, eax
je 0x10162460
mov dword [ebx], eax
add ebx, 4
jmp 0x10162441
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10162497
cmp al, 0xef
ja 0x1016248a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1016246c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10162479
mov ebp, dword [esi + 0x162148]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x101624cb
sub esp, 0xffffff80
jmp 0x1004e945
Function at 0x401320
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x204
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x20c]
push ebp
push esi
push edi
push eax
push 0xf003f
mov esi, ecx
push ebx
call fcn.00401230
test eax, eax
jne 0x40135e
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00401410
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.SoftwareMicrosoftMachine_Debug_Manager
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x4013df
mov edi, 0x4163d8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, 0x80004005
pop ebx
add esp, 0x204
ret 4

Function at 0x401410
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
test esi, esi
mov dword [esp + 8], ecx
je 0x401499
push edi
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [esp + 0x18]
push 0x200
push eax
push 0
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x40148a
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0xf003f
push eax
push edx
push esi
call ebp
test eax, eax
jne 0x40147a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00401410
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test edi, edi
je 0x401435
pop ebx
pop ebp
xor eax, eax
pop edi
pop esi
add esp, 0x208
ret 4
mov eax, 0x80070057
pop esi
add esp, 0x208
ret 4
Function at 0x4014b0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x104
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push esi
push eax
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
lea eax, [esp + 0x14]
add esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax + 0x194]
test ecx, ecx
je 0x401529
add eax, 0x70
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x401537
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x104
ret
lea edx, [esp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_puts]
add esp, 4
pop esi
add esp, 0x104
ret
Function at 0x402200
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
test esi, esi
je 0x402347
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402347
mov dword [eax], 0
lea eax, [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x14]
push 0
push edx
push 0
push esi
push 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x7a
jne 0x402321
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x402311
mov ecx, dword [esp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x20]
test eax, eax
mov dword [edx], eax
je 0x4022f4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push esi
push 0
call edi
test eax, eax
jne 0x4022c9
call ebp
test eax, eax
je 0x4022c9
call ebp
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x4022cb
xor esi, esi
test esi, esi
je 0x4022f9
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x10]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
mov esi, 0x8007000e
mov edx, dword [esp + 0x10]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
mov esi, 0x8007000e
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
test eax, eax
je 0x40233a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret 8
Function at 0x402b30
Capabilities:
Delete registry value
Delete service
Persist via run registry key
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
xor ebx, ebx
call fcn.00413dd0
cmp eax, 3
jne 0x402bf1
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push 0xf003f
push ebx
push ebx
push str.softwaremicrosoftwindowscurrentversion_runservices
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00411560
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x402b98
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x70]
push eax
push ecx
call edi
mov dword [ebp - 0x10], 0
push 0
push 0
push 0xf003f
push 0
push 0
mov ebx, 1
push str.softwaremicrosoftwindowscurrentversion_run
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00411560
test eax, eax
jne 0x402bd4
mov eax, dword [ebp - 0x10]
lea edx, [esi + 0x70]
push edx
push eax
call edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.00411540
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00411540
jmp 0x402c48
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x402c48
add esi, 0x70
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402c39
lea ecx, [ebp - 0x34]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x402c3e
mov ebx, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x18]
test ebx, ebx
jne 0x402ca7
lea edx, [ebp - 0x14]
mov ecx, esi
push edx
push 0xfa4
call fcn.00401940
test eax, eax
jne 0x402ca7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x402c8e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00414820
mov ecx, dword [ebp - 0x14]
mov eax, esp
push esi
push ecx
push eax
call fcn.0040f850
mov esi, dword [ebp - 0x18]
add esi, 0x70
push 0
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x40]
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4075b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
test ecx, ecx
je 0x40771a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40771a
mov dword [ecx], 0
mov dword [eax], 0
lea eax, [ebp - 0x14]
mov ecx, 0x41b0c8
push eax
push 0x20019
push str.NeverTerminate
call fcn.00401230
mov esi, eax
test esi, esi
jne 0x40771f
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push 0
lea edx, [ebp - 0x21c]
push ecx
push edx
push esi
push eax
mov dword [ebp - 0x18], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x4076e8
mov eax, dword [ebp - 4]
inc esi
cmp esi, eax
mov dword [ebp - 0x10], esi
jbe 0x40769f
mov ecx, dword [ebp - 8]
add ecx, 0x28
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40769a
test edi, edi
je 0x407683
mov ecx, dword [ebp - 8]
mov esi, edi
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp - 0x10]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add ecx, 0xa
add eax, 0x28
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, ebx
cmp esi, dword [ebp - 4]
ja 0x4076e8
lea ecx, [ebp - 0x21c]
test ecx, ecx
jne 0x4076ad
xor eax, eax
jmp 0x4076dd
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00414820
mov eax, esp
lea ecx, [ebp - 0x21c]
push esi
push ecx
push eax
call fcn.0040f820
mov esi, dword [ebp - 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + esi*4 - 4], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40760b
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [edx], edi
mov dword [eax], esi
push ecx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0x228]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, 0x80070057
lea esp, [ebp - 0x228]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408880
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push str.SOFTWAREMicrosoftJava_VMMSDEBUG
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4088b0
push eax
call esi
lea ecx, [esp + 4]
push ecx
push str.SOFTWAREMicrosoftJava_VM
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 4]
test eax, eax
je 0x4088e0
push str.DEBUG
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 4]
push edx
call esi
pop esi
pop ecx
ret
Function at 0x408ae0
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x20]
test eax, eax
jne 0x408b53
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push str.DeathDetectorSync
push 0
push 0
push 0
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
test edi, edi
je 0x408b4a
push ebx
push 0
push esi
push 0x408bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x24]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop edi
pop esi
pop ebx
ret
mov eax, 0x80004005
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x40a640
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 0x28]
call fcn.00407730
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x44]
or edx, 0x10
test eax, eax
mov dword [esi + 0x14], edx
je 0x40a6b1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40a689
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x40a689
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x40a68b
xor edi, edi
mov eax, dword [esi + 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x40], 0
push ecx
call ebx
mov dword [esi + 0x44], 0
pop ebx
mov eax, edi
pop edi
pop esi
ret
mov edi, 0x80004005
mov eax, edi
pop edi
pop esi
ret

Function at 0x40a810
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
push edi
push esi
push 0x40a860
mov edi, 0x80004005
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40a84c
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x1c], 0
xor edi, edi
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x40adc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
test byte [esi + 0x14], 4
jne 0x40ae6f
push str.system.ini
lea eax, [esp + 0x10]
push 0x104
push eax
push str.explorer.exe
push str.shell
push str.boot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40ae0b
lea ecx, [esp + 0xc]
push str.explorer.exe
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.0040aad0
test eax, eax
jne 0x40ae6f
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.004139b0
add esp, 8
test eax, eax
jne 0x40ae64
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40ae50
mov eax, dword [esi + 0x14]
or al, 8
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x14]
or ecx, 4
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 0x14]
pop esi
and eax, 8
add esp, 0x10c
ret
Function at 0x40d720
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d796
mov eax, dword [esp + 8]
push 3
test eax, eax
je 0x40d772
mov ecx, dword [esp + 4]
push 0x416d68
push 1
push 0
push str.Disable_Script_Debugger
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
mov edx, dword [esp + 4]
push 0x416d6c
push 1
push 0
push str.Disable_Script_Debugger
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x40d7a0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerBrowseNewProcess
push SysReAllocStringLen
mov dword [esp + 0x1c], 0
call edi
mov ebx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d80f
test ebx, ebx
push 3
je 0x40d7f3
mov ecx, dword [esp + 0x14]
push 0x416d6c
push 1
push 0
push str.BrowseNewProcess
push ecx
jmp 0x40d806
mov edx, dword [esp + 0x14]
push 0x416d68
push 1
push 0
push str.BrowseNewProcess
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push str..DEFAULTSoftwareMicrosoftWindowsCurrentVersionExplorerBrowseNewProcess
push VariantInit
call edi
test eax, eax
jne 0x40d867
test ebx, ebx
push 3
je 0x40d84b
mov edx, dword [esp + 0x14]
push 0x416d6c
push 1
push eax
push str.BrowseNewProcess
push edx
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x14]
push 0x416d68
push 1
push 0
push str.BrowseNewProcess
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40d870
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
xor esi, esi
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0xa
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40d8a5
mov eax, 0x80004005
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push esi
push esi
push str.Disable_Script_Debugger
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d8f3
lea ecx, [esp + 0xc]
push 0x416d6c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edx, dword [esp + 0x1c]
neg eax
sbb eax, eax
neg eax
mov dword [edx], eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 4]
mov esi, 0x80004005
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x40d910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebp, ebp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerBrowseNewProcess
push SysReAllocStringLen
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0xa
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40d94b
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push ebp
push ebp
push str.BrowseNewProcess
push eax
call esi
mov edi, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d98c
lea ecx, [esp + 0x18]
push 0x416d6c
push ecx
call ebx
neg eax
sbb eax, eax
inc eax
mov dword [edi], eax
jmp 0x40d991
mov ebp, 0x80004005
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push str..DEFAULTSoftwareMicrosoftWindowsCurrentVersionExplorerBrowseNewProcess
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40d9c2
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push str.BrowseNewProcess
push eax
call esi
test eax, eax
jne 0x40d9f9
lea ecx, [esp + 0x18]
push 0x416d6c
push ecx
call ebx
mov ecx, dword [edi]
neg eax
sbb eax, eax
inc eax
or ecx, eax
mov dword [edi], ecx
jmp 0x40d9fe
mov ebp, 0x80004005
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret