joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cfd60
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, ecx
mov eax, dword [esi + 0xc]
push str.XDOpen
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.XDClose
push ecx
mov dword [esi + 0x3c], eax
call edi
mov edx, dword [esi + 0xc]
push str.XDAddRecordsEx
push edx
mov dword [esi + 0x40], eax
call edi
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0xc]
push str.XDDeleteRecords
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.XDGetFirst
push ecx
mov dword [esi + 0x48], eax
call edi
mov edx, dword [esi + 0xc]
push str.XDGetNext
push edx
mov dword [esi + 0x4c], eax
call edi
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0xc]
push str.XDGetCounts
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.XDGetLastFlag
push ecx
mov dword [esi + 0x54], eax
call edi
xor ecx, ecx
mov dword [esi + 0x58], eax
cmp dword [esi + 0x3c], ecx
je 0x4cfe09
cmp dword [esi + 0x40], ecx
je 0x4cfe09
cmp dword [esi + 0x44], ecx
je 0x4cfe09
cmp dword [esi + 0x48], ecx
je 0x4cfe09
cmp dword [esi + 0x4c], ecx
je 0x4cfe09
cmp dword [esi + 0x50], ecx
je 0x4cfe09
cmp dword [esi + 0x54], ecx
je 0x4cfe09
cmp eax, ecx
je 0x4cfe09
pop edi
lea eax, [ecx + 1]
pop esi
ret
pop edi
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], ecx
xor eax, eax
pop esi
ret

Function at 0x4d2d20
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
push eax
call fcn.004af060
add esp, 4
push 0x17
push str.deepscancloudsec3.dll
lea ecx, [esp + 0x10]
call fcn.0043c7c0
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2d69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4d2ed0
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push str._safemon360tray.exe
push eax
call fcn.004c1570
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
push esi
call edi
test eax, eax
lea eax, [esi - 0x10]
sete bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2f14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4d2f1f
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
lea ecx, [esp + 0xc]
push str.deepscandeepscan.dll
push ecx
call fcn.004c1570
mov esi, dword [esp + 0x14]
add esp, 8
push esi
call edi
test eax, eax
je 0x4d2f4c
call fcn.004d2d20
test eax, eax
je 0x4d2f4c
mov edi, 1
jmp 0x4d2f4e
xor edi, edi
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2f6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4d3210
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x214
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
lea eax, [esp + 8]
push str.360leakfixer.exe
push eax
xor ebx, ebx
call fcn.004c1570
mov ebp, dword [esp + 0x10]
add esp, 8
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d3315
mov edx, dword [0x54ffc8]
mov eax, dword [edx + 0xc]
push esi
push edi
mov ecx, 0x54ffc8
call eax
lea ecx, [esp + 0x14]
add eax, 0x10
push str.360ver.dll
push ecx
mov dword [esp + 0x18], eax
call fcn.004c1570
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push esi
call fcn.004d1850
mov edi, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x4d32db
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.004d86e0
push 0x103
lea edx, [esp + 0x28]
push edx
push str.8.9.0.0
push str.safe_minver
push 0x521d94
call fcn.004d2fd0
lea eax, [esp + 0x38]
push eax
push edi
call fcn.004cf9d0
add esp, 0x28
test eax, eax
jge 0x4d32db
mov ebx, 1
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d32f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
test edx, edx
jg 0x4d3315
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3331
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x218]
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004d7eb0
add esp, 0x214
ret
Function at 0x4d64a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x54ffe4], 0
push esi
jne 0x4d640e
call fcn.004d6322
test eax, eax
je 0x4d6451
mov eax, dword [0x54ffe4]
cmp eax, 1
jne 0x4d642f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4d6451
pop esi
ret
push eax
call dword [0x54ffec]
test eax, eax
jne 0x4d6499
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4d6455
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x54ffe4]
call dword [0x54ffec]
mov edi, eax
test edi, edi
je 0x4d647a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4d6496
mov edi, esi
add esi, 0xff0
push edi
push dword [0x54ffe4]
call dword [0x54ffe8]
add edi, 0x10
cmp edi, esi
jb 0x4d6482
mov eax, edi
pop edi
pop esi
ret
jmp 0x4d63fb

Function at 0x4d7eb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x541f38]
jne 0x4d7eba
repz ret
jmp fcn.004e70e0

Function at 0x4f94f0
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.004e3ae2
and dword [ebp - 4], 0
cmp dword [0x550aec], 0
mov ebx, eax
jne 0x4f95a1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4f9652
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4f9652
push eax
call fcn.004e3a70
mov dword [esp], 0x5270dc
push edi
mov dword [0x550aec], eax
call esi
push eax
call fcn.004e3a70
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x550af0], eax
call esi
push eax
call fcn.004e3a70
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x550af4], eax
call esi
push eax
call fcn.004e3a70
pop ecx
mov dword [0x550afc], eax
test eax, eax
je 0x4f95a1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004e3a70
pop ecx
mov dword [0x550af8], eax
mov eax, dword [0x550af8]
cmp eax, ebx
je 0x4f95f9
cmp dword [0x550afc], ebx
je 0x4f95f9
push eax
call fcn.004e3aeb
push dword [0x550afc]
mov esi, eax
call fcn.004e3aeb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4f95f9
test edi, edi
je 0x4f95f9
call esi
test eax, eax
je 0x4f95f0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4f95f0
test byte [ebp - 0xc], 1
jne 0x4f95f9
or dword [ebp + 0x10], 0x200000
jmp 0x4f9632
mov eax, dword [0x550af0]
cmp eax, ebx
je 0x4f9632
push eax
call fcn.004e3aeb
pop ecx
test eax, eax
je 0x4f9632
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4f9632
mov eax, dword [0x550af4]
cmp eax, ebx
je 0x4f9632
push eax
call fcn.004e3aeb
pop ecx
test eax, eax
je 0x4f9632
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x550aec]
call fcn.004e3aeb
pop ecx
test eax, eax
je 0x4f9652
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4f9654
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x506da0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.004d96e0
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x506f0b
cmp dword [esp + 0x2c20], edi
je 0x506f0b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.005067c0
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x506ee4
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004d86e0
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x506ed7
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.004d86e0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00508970
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.00506610
test eax, eax
jne 0x506ed7
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x506eee
inc ebx
cmp ebx, 0x10
jl 0x506df0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.004d7eb0
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004d7eb0
add esp, 0x2c14
ret
Function at 0x5071f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x5073f1
cmp dword [esp + 0x2f8], 0
je 0x5073f1
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004d86e0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x527c60
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5073b8
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x5073ab
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x507379
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50736e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004d86e0
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.005070e0
add esp, 0x14
test eax, eax
je 0x50736e
cmp byte [esp + 0x24], 0
je 0x507332
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x50736e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x507361
mov cl, byte [esi + eax]
test cl, cl
je 0x507361
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x507346
jmp 0x507365
test edx, edx
jne 0x507366
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x507290
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x5073f1
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.00506610
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004d7eb0
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004d7eb0
add esp, 0x2ec
ret
Function at 0x507660
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x5077dd
cmp ebp, 0x20
jb 0x5077dd
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.004d86e0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x527cd0
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x5077dd
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5076f0
sub eax, edx
cmp eax, 0x40
jne 0x5077dd
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x50772e
mov cl, byte [esi + eax]
test cl, cl
je 0x50772e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x507716
jmp 0x507732
test edx, edx
jne 0x507733
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x50776b
mov cl, byte [edx + eax]
test cl, cl
je 0x50776b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x507750
jmp 0x50776f
test esi, esi
jne 0x507770
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.004d86e0
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.00506820
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x5077dd
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.00506610
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004d7eb0
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004d7eb0
add esp, 0x50c
ret

Function at 0x507800
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.004d86e0
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.00506820
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x50786b
mov cl, byte [esi + eax]
test cl, cl
je 0x50786b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x507850
jmp 0x50786f
test edx, edx
jne 0x507870
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.005066d0
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x507896
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x527cd0
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004d7eb0
add esp, 0x188
ret
Function at 0x10003bd3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
sub esp, 0x1bc
lea ebp, [esp - 4]
mov eax, dword [0x10024b00]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
push 0x70
mov eax, 0x1001c4d1
call fcn.1000c98d
mov eax, dword [ebp + 0x1d8]
mov esi, dword [ebp + 0x1c8]
mov edi, dword [ebp + 0x1cc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1dc]
mov dword [ebp - 0x18], eax
push 0x104
xor ebx, ebx
lea eax, [ebp + 0x78]
push eax
push ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10003c68
lea eax, [ebp + 0x78]
push 0x5c
push eax
call fcn.1000bf60
pop ecx
pop ecx
cmp eax, ebx
je 0x10003c68
inc eax
push str.IDMGrHlp.exe
push eax
call fcn.1000d483
pop ecx
pop ecx
test eax, eax
jne 0x10003c68
xor eax, eax
jmp fcn.10003d6e
cmp dword [0x10025b68], ebx
jne 0x10003c81
call fcn.100010ac
cmp dword [0x10025b68], ebx
je 0x10003d69
lea eax, [ebp - 0x30]
push eax
push 1
push ebx
push str.SoftwareDownloadManagerIDMBIIEXPLORE
push SysReAllocString
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10003ca2
inc edx
add eax, dword [ecx]

Function at 0x10006abe
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10006b0c
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x10006b1d
push 0xd
pop eax
jmp 0x10006b47
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10006b20
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x10007285
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x10024b00]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor edi, edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call fcn.10006a89
mov ebx, eax
cmp ebx, edi
je 0x100072f5
lea ecx, [ebp - 0x70]
call fcn.10006a20
mov eax, ebx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c94b
add ebp, 0x9c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000730d
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.10007285
cmp eax, edi
jne 0x10007340
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x100072fd
lea ecx, [ebp - 0x70]
call fcn.10006a20
push dword [ebp - 0x78]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.10006a20
mov eax, esi
jmp 0x100072db
Function at 0x403008
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x482020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403080
xor eax, eax
push ebp
push 0x403079
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4030bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403080
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x482020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x482020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48404c], 0
je 0x403dcd
cmp word [0x484220], 0xd7b2
jne 0x403d95
cmp dword [0x484228], 0
jbe 0x403d95
mov eax, 0x48421c
call dword [0x484238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48206c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403df4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x482030], 0
jne 0x403de9
push 0
push 0x482064
push 0x48206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405da2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404158
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bcc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d8c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405da9
lea eax, [ebp - 0x10]
call fcn.00403ee8
ret

Function at 0x40b12c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b165
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fd8
jmp 0x40b16e
mov eax, ebx
mov edx, esi
call fcn.00403f3c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b178
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b199
mov al, byte [esp]
jmp 0x40b19b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b820
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b698
mov eax, dword [0x483564]
cmp byte [eax], 0
je 0x40b89c
mov eax, dword [0x483358]
call fcn.00402a38
call fcn.004028ac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408850
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b8e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b8d2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4832f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x484668]
call fcn.00405234
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret