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

Disassembly:
sub esp, 0x24
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
push str.advapi32.dll
call fcn.1006018c
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov edi, eax
mov dword [esp], 0x100f9464
push edi
call esi
push 0x100f9480
push edi
mov ebx, eax
call esi
push 0x100f9494
push edi
mov ebp, eax
call esi
push str.EqualSid
push edi
mov dword [esp + 0x24], eax
call esi
push 0x100f94b4
push edi
mov dword [esp + 0x28], eax
call esi
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
push ecx
xor eax, eax
mov word [esp + 0x30], 0x500
push eax
push eax
push eax
push eax
push eax
push eax
push 0x220
push 0x20
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x4c]
push 2
push eax
call ebx
lea eax, [esp + 0x14]
xor esi, esi
push eax
push 8
mov dword [esp + 0x1c], esi
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call ebp
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push esi
push 2
push dword [esp + 0x24]
mov dword [esp + 0x24], esi
call ebx
push dword [esp + 0x10]
call fcn.1006018c
mov edi, eax
pop ecx
test edi, edi
je 0x100390ea
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push edi
push 2
push dword [esp + 0x24]
call ebx
cmp dword [edi], esi
jbe 0x100390da
mov ebp, dword [esp + 0x20]
lea ebx, [edi + 4]
push dword [ebx]
push dword [esp + 0x1c]
call ebp
test eax, eax
jne 0x100390da
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x100390c6
xor eax, eax
cmp esi, dword [edi]
push edi
setne al
mov esi, eax
call fcn.1006018c
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [esp + 0x18]
call dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100587af
add esp, 0x24
ret

Function at 0x10039eee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x200
push eax
push 1
xor esi, esi
push esi
push 0x100fc618
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10039f59
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push 0x100fc664
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x7c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10039f59
xor al, al
jmp 0x10039f5b
mov al, 1
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
pop esi
call fcn.100587af
add ebp, 0x18c
leave
ret
Function at 0x10039f71
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov eax, 0x3010
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x300c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3020]
lea eax, [esp + 0x2018]
mov ebp, 0x1000
xor ebx, ebx
push ebp
push ebx
push eax
call fcn.1005c640
push esi
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push 0x100fc568
lea eax, [esp + 0x2030]
push ebp
push eax
call fcn.1006018c
add esp, 0x20
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
lea eax, [esp + 0x2024]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003a0f0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebp
push eax
lea eax, [esp + 0x101c]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x100fc574
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1003a0f0
cmp dword [esp + 0x14], 1
jne 0x1003a0f0
mov eax, dword [esp + 0x10]
mov ecx, 0x7ff
shr eax, 1
cmp eax, 0x800
cmovb ecx, eax
add ecx, ecx
cmp ecx, ebp
jae 0x1003a10a
push edi
xor eax, eax
push ebp
mov word [esp + ecx + 0x1020], ax
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.1005c640
push str.binjava.exe
lea eax, [esp + 0x102c]
push eax
push 0x100fc5a4
lea eax, [esp + 0x34]
push ebp
push eax
call fcn.1006018c
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x3c]
add esp, 0x20
push eax
call edi
test eax, eax
je 0x1003a0ef
push str.binclientjvm.dll
lea eax, [esp + 0x1020]
push eax
push 0x100fc5d8
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.1006018c
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
call edi
mov esi, eax
lea eax, [esp + 0x101c]
push str.bin_serverjvm.dll
push eax
push str._s_s
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.1006018c
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
call edi
test esi, esi
jne 0x1003a0ed
test eax, eax
je 0x1003a0ef
mov bl, 1
pop edi
mov ecx, dword [esp + 0x3018]
mov al, bl
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100587af
add esp, 0x3010
ret
call fcn.1006018c
int3
Function at 0x1003a1b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x100c
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebp
push esi
mov esi, dword [esp + 0x1018]
xor eax, eax
xor ebp, ebp
mov dword [esp + 0xc], ebp
mov word [esi], ax
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebp
push 0x100fc4b8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003a2ac
push edi
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
mov edi, ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
jmp 0x1003a291
mov eax, ebp
mov ecx, ebp
cmp dword [esp + 0xc], eax
jbe 0x1003a281
cmp word [esp + ecx*2 + 0x14], 0x2e
jne 0x1003a22b
inc eax
cmp eax, 1
jg 0x1003a237
inc ecx
cmp ecx, dword [esp + 0xc]
jb 0x1003a21d
cmp eax, 1
jle 0x1003a281
lea eax, [esp + 0x14]
push 0x100fc4ac
push eax
call fcn.1006018c
pop ecx
pop ecx
test eax, eax
js 0x1003a281
lea eax, [esp + 0x14]
push eax
call fcn.10039f71
pop ecx
test al, al
je 0x1003a281
lea eax, [esp + 0x14]
push esi
push eax
call fcn.1006018c
pop ecx
pop ecx
test eax, eax
jle 0x1003a281
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1024]
push esi
call fcn.1006018c
add esp, 0xc
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
inc edi
push eax
lea eax, [esp + 0x28]
push eax
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x2c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1003a213
pop edi
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1010]
pop esi
pop ebp
xor ecx, esp
call fcn.100587af
add esp, 0x100c
ret
Function at 0x1003a2cd
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4044
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x4040], eax
push ebx
push ebp
push esi
push edi
mov esi, 0x1000
lea eax, [esp + 0x50]
push esi
xor edi, edi
push edi
push eax
call fcn.1005c640
push edi
xor ebx, ebx
lea eax, [esp + 0x60]
inc ebx
mov ebp, 0x800
push ebx
push ebp
push eax
call fcn.100281de
add esp, 0x1c
test eax, eax
je 0x1003a47e
lea eax, [esp + 0x50]
push eax
push str.11.281.2
call fcn.1006018c
pop ecx
pop ecx
test eax, eax
jg 0x1003a47e
push esi
lea eax, [esp + 0x3054]
push edi
push eax
call fcn.1005c640
push edi
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x3064]
push ebp
push eax
call fcn.1002840a
add esp, 0x1c
test eax, eax
je 0x1003a47e
push esi
lea eax, [esp + 0x1054]
push edi
push eax
call fcn.1005c640
lea eax, [esp + 0x305c]
push eax
lea eax, [esp + 0x1060]
push ebp
push eax
call fcn.1006018c
push str._bin_ssvagent.exe
lea eax, [esp + 0x106c]
push ebp
push eax
call fcn.1006018c
push 0x3c
pop esi
push esi
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.1005c640
push 0x1000
lea eax, [esp + 0x2084]
mov dword [esp + 0x48], esi
push edi
push eax
call fcn.1005c640
push str._high__jpisetup__register
lea eax, [esp + 0x2090]
push ebp
push eax
call fcn.1006018c
add esp, 0x48
call fcn.10034516
test eax, eax
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x1050]
mov dword [esp + 0x18], 0x40
mov edx, str.open
mov dword [esp + 0x24], eax
mov ecx, str.runas
lea eax, [esp + 0x50]
cmove ecx, edx
push eax
mov dword [esp + 0x24], ecx
call fcn.100346f7
test eax, eax
mov edx, str.__old
mov ecx, str.__new
lea eax, [esp + 0x2054]
cmove ecx, edx
push ecx
push ebp
push eax
call fcn.1006018c
add esp, 0x10
lea eax, [esp + 0x2050]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1003a47a
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x4c], edi
je 0x1003a47a
push 0xffffffffffffffff
push dword [esp + 0x50]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x50]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [esp + 0x4c]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x1003a480
mov eax, ebx
mov ecx, dword [esp + 0x4050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100587af
add esp, 0x4044
ret
Function at 0x1003a81d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
push esi
mov esi, dword [ebp + 0xf98]
lea eax, [ebp - 0x78]
push edi
push eax
push 1
push 0
push str.SoftwareJavaSoftJava_Web_Start_
mov dword [ebp - 0x80], esi
mov edi, 0x1000
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003a8c8
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003a8bf
cmp dword [ebp - 0x80], 1
jne 0x1003a8bf
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x7c]
mov ecx, 0x7ff
shr eax, 1
cmp eax, 0x800
cmovb ecx, eax
add ecx, ecx
cmp ecx, edi
jae 0x1003a8ed
xor eax, eax
mov word [ebp + ecx - 0x74], ax
lea eax, [ebp - 0x74]
push eax
jmp 0x1003a8cd
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100fca04
mov ecx, esi
call fcn.10001727
mov ecx, dword [ebp + 0xf8c]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.100587af
add ebp, 0xf90
leave
ret
call fcn.1006018c
int3
Function at 0x1003a910
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0x10
mov eax, 0x100bc224
call fcn.100587f7
xor esi, esi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
and dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
call fcn.10001727
mov edi, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
test edi, edi
je 0x1003a945
xor eax, eax
cmp dword [edi], eax
sete al
jmp 0x1003a947
mov eax, ebx
test al, al
je 0x1003a952
push 0x100fc3b9
jmp 0x1003a970
test edi, edi
je 0x1003a95a
mov eax, dword [edi]
jmp 0x1003a95c
xor eax, eax
push eax
call fcn.1003ad1c
pop ecx
test eax, eax
jne 0x1003a9ab
lea ecx, [ebp - 0x14]
call fcn.1001d871
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x1003aa17
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000d9ae
push eax
lea ecx, [ebp - 0x10]
call fcn.10001795
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003a9bb
call fcn.10001b26
jmp 0x1003a9bb
cmp eax, ebx
jne 0x1003aa17
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001795
lea ecx, [ebp - 0x10]
call fcn.1001d871
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 4
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
je 0x1003aa14
mov ecx, dword [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a9e6
sub ecx, edx
push ecx
push dword [esi]
call fcn.1006018c
pop ecx
pop ecx
push dword [esi]
lea ecx, [ebp - 0x18]
call fcn.1000d9ae
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003aa0f
call fcn.10001b26
mov esi, dword [ebp - 0x10]
jmp 0x1003aa19
mov esi, dword [ebp - 0x10]
xor bl, bl
test edi, edi
je 0x1003aa24
mov ecx, edi
call fcn.10001b26
test esi, esi
je 0x1003aa2f
mov ecx, esi
call fcn.10001b26
mov al, bl
call fcn.100587c0
ret
Function at 0x1003aab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100588e0
push 0xffffffffffffffff
push 0x100bc262
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x100c]
mov dword [ebp - 0x18], edi
xor ebx, ebx
lea eax, [ebp]
push 0x1000
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1005c640
mov eax, dword [ebp + 0x1010]
add esp, 0xc
test eax, eax
je 0x1003ab1b
mov esi, dword [eax]
jmp 0x1003ab1d
mov esi, ebx
movzx ecx, word [esi]
mov eax, ebx
mov edx, ebx
test cx, cx
je 0x1003ac42
cmp cx, 0x2e
jne 0x1003ab39
inc eax
cmp eax, 1
jg 0x1003ab4c
inc edx
movzx ecx, word [esi + edx*2]
test cx, cx
jne 0x1003ab2d
cmp eax, 1
jle 0x1003ac42
push 0x100fca6c
push esi
call fcn.1006018c
pop ecx
pop ecx
test eax, eax
js 0x1003ac42
push esi
call fcn.10039f71
pop ecx
test al, al
je 0x1003ac42
push 0x100fca88
lea ecx, [ebp - 0x14]
call fcn.10001727
push 0x100fca84
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.1000d9ae
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003abae
call fcn.10001b26
push esi
lea ecx, [ebp - 0x10]
call fcn.10001727
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003abd7
call fcn.10001b26
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1003abe2
mov eax, dword [esi]
jmp 0x1003abe4
mov eax, ebx
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003ac2a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1000
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x100fcae0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1003ac2a
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.10001727
test esi, esi
je 0x1003ac62
mov ecx, esi
call fcn.10001b26
jmp 0x1003ac62
push str.1.3.1
push esi
call fcn.1006018c
push esi
call fcn.10039f71
add esp, 0xc
mov ecx, edi
push 0x100fc3be
call fcn.1000d9ae
mov ecx, dword [ebp + 0x1010]
test ecx, ecx
je 0x1003ac71
call fcn.10001b26
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.100587af
add ebp, 0x1004
leave
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
xchg edi, eax
mov ebp, esp
push ecx
pop esi
outsb dx, byte [esi]
mov ebp, dword [edi + 0x4cc0c8]
push ebp
mov eax, 0x7468404d
rol byte [eax - 0x16], cl
idiv edi
adc eax, 0x35c1b6
mov eax, dword [0x410270]
insb byte es:[edi], dx
invalid

Function at 0x406c88
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x406c8a
ret
Function at 0x401b80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401bcb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401bc4
test esi, esi
je 0x401bc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ba0
mov dword [esp], 0x407044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401db0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401ed4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401e3e
cmp eax, 4
jne 0x401e60
test esi, esi
je 0x401e52
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401e44
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401e9f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401e91
cmp ecx, 0x40
je 0x401e52
cmp ecx, 4
je 0x401e52
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401db0
lea esi, [esi]
Function at 0x10003ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x9c
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
lea ebx, [ebp - 0xa4]
mov dword [ebx], edi
push ebx
push 0x20106
push edi
push str.SoftwareAppDataLowSoftwareMicrosoftEdgeIEToEdge
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10004093
mov esi, eax
push 2
call fcn.1000f8f5
add esp, 4
test al, al
je 0x1000407a
lea edi, [ebp - 0xa4]
mov ecx, edi
push 2
push 0x1f3
push str....._third_partyie_to_edge_bho_bho.cc
call fcn.1000f93e
mov ecx, edi
call fcn.10002820
push 0x22
push str.Failed_to_open_kStateKey_reg_key:
push eax
call fcn.100065e4
add esp, 0xc
mov ecx, eax
push esi
call fcn.10001bb0
mov ecx, edi
call fcn.1000fc9a
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ba3a
mov eax, ebx
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0xa4]
xor eax, eax
dec eax
lea ecx, [ebp - 0x18]
mov dword [ecx], eax
lea esi, [ebp - 0x14]
mov dword [esi], eax
mov dword [ebp - 0xa4], 4
push ebx
push ecx
push esi
push edi
push str.DisableNeedEdgeForEnterprise
mov dword [ebp - 0xa8], edx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esi], 4
mov ebx, 0xd
cmove ebx, edi
test eax, eax
cmovne ebx, eax
cmp ebx, 2
je 0x100040e5
test ebx, ebx
jne 0x100040fe
cmp dword [ebp - 0x18], 1
je 0x100040fa
xor ebx, ebx
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x1000407c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000407c
mov bl, 1
jmp 0x100040e7
push 2
call fcn.1000f8f5
add esp, 4
test al, al
je 0x100040e5
lea edi, [ebp - 0xa4]
mov ecx, edi
push 2
push 0x1ef
push str....._third_partyie_to_edge_bho_bho.cc
call fcn.1000f93e
mov ecx, edi
call fcn.10002820
push 0x38
push str.Failed_to_read_kDisableNeedEdgeForEnterprise_reg_value:
push eax
call fcn.100065e4
add esp, 0xc
mov ecx, eax
push ebx
call fcn.10001bb0
mov ecx, edi
call fcn.1000fc9a
jmp 0x100040e5
Function at 0x100044d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
mov ebx, 0xfffffff8
xor esi, esi
jmp 0x10004528
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.NotifyDisableIEOptions
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004523
cmp dword [ebp - 0x18], 4
je 0x10004566
add ebx, 4
je 0x1000456a
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebx + str.SOFTWAREPoliciesMicrosoftInternet_ExplorerMain]
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x14]
push ecx
push 0x20106
push edi
push str.SOFTWAREPoliciesMicrosoftInternet_ExplorerMain
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004523
test esi, esi
je 0x100044ee
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
test eax, eax
jne 0x10004523
jmp 0x100044f1
mov bl, 1
jmp 0x1000456c
xor ebx, ebx
test esi, esi
je 0x10004577
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ba3a
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10006944
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x98
mov eax, dword [0x1006700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
lea ebx, [ebp - 0xa4]
mov dword [ebx], edi
push ebx
push 0x20119
push edi
push str.SoftwareAppDataLowSoftwareMicrosoftEdgeIEToEdge
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10006a0f
mov esi, eax
push 2
call fcn.1000f8f5
add esp, 4
test al, al
je 0x100069cc
mov ecx, ebx
push 2
push 0xc2
push str....._third_partyie_to_edge_bhocampaign_util.cc
call fcn.1000f93e
mov ecx, ebx
call fcn.10002820
push 0x22
push str.Failed_to_open_kStateKey_reg_key:
push eax
call fcn.100065e4
add esp, 0xc
mov ecx, eax
push esi
call fcn.10001bb0
mov ecx, ebx
call fcn.1000fc9a
lea eax, [ebp - 0xa4]
mov bl, byte [ebp + 0xc]
mov dword [ebp - 0xa4], 0xffffffff
push eax
push str.CampaignMode
call fcn.1000e7c4
add esp, 8
mov ecx, dword [ebp - 0xa4]
xor edx, edx
inc edx
cmp ecx, 4
cmovae ecx, edx
test eax, eax
cmovne ecx, edx
jmp dword [ecx*4 + 0x1005d330]
not bl
and bl, byte [ebp + 8]
jmp 0x10006a72
mov edi, dword [ebp - 0xa4]
xor eax, eax
dec eax
lea ecx, [ebp - 0x18]
mov dword [ecx], eax
lea esi, [ebp - 0x14]
mov dword [esi], eax
mov dword [ebp - 0xa4], 4
xor eax, eax
push ebx
push ecx
push esi
push eax
xor ebx, ebx
push str.DisableCampaignRedirect
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esi], 4
mov esi, 0xd
cmove esi, ebx
test eax, eax
cmovne esi, eax
cmp esi, 2
je 0x100069cc
test esi, esi
jne 0x10006a94
cmp dword [ebp - 0x18], 1
jne 0x100069cc
xor ebx, ebx
jmp 0x10006a72
xor bl, 1
test edi, edi
je 0x10006a7d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ba3a
mov eax, ebx
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.1000f8f5
add esp, 4
test al, al
je 0x100069cc
lea ebx, [ebp - 0xa4]
mov ecx, ebx
push 2
push 0xbe
push str....._third_partyie_to_edge_bhocampaign_util.cc
call fcn.1000f93e
mov ecx, ebx
call fcn.10002820
push 0x33
push str.Failed_to_read_kDisableCampaignRedirect_reg_value:
jmp 0x100069b4