joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100928d
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x940
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x800
lea eax, [ebp - 0x81a]
push esi
push eax
mov word [ebp - 0x81c], si
call fcn.010108ea
add esp, 0xc
cmp dword [ebp + 8], 0x641
mov dword [ebp - 0x93c], esi
mov edi, 0x401
jb 0x1009157
push esi
push edi
lea eax, [ebp - 0x81c]
push eax
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.01011300
cmp eax, esi
mov dword [ebp - 0x940], eax
jne 0x1009206
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0x1001bbc
mov dword [ebp - 0x940], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x10091b8
push 0x1001ba0
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10091b1
call eax
movzx eax, ax
push 0xa
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x93c], eax
push ecx
movzx eax, ax
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10091b1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x940], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
push edi
lea eax, [ebp - 0x81c]
push eax
movzx eax, word [ebp - 0x93c]
push eax
push dword [ebp + 8]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp eax, esi
je 0x10091e6
mov word [ebp + eax*2 - 0x820], si
jmp 0x1009206
push dword [ebp + 8]
lea eax, [ebp - 0x81c]
push 0x1001b7c
push edi
push eax
call fcn.01006339
add esp, 0x10
test eax, eax
jl 0x1009318
cmp dword [0x1015510], esi
mov eax, dword [0x1015a28]
jne 0x10092cb
cmp eax, esi
je 0x1009224
cmp eax, 0xffffffff
jne 0x10092cb
lea eax, [ebp - 8]
mov edi, 0x11c
push edi
mov dword [ebp - 0x14], eax
xor ebx, ebx
lea eax, [ebp - 0x938]
push esi
inc ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.010108ea
add esp, 0xc
lea eax, [ebp - 0x938]
push eax
mov dword [ebp - 0x938], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10092aa
cmp dword [ebp - 0x934], 6
jb 0x10092aa
push esi
push 0x100
lea ecx, [ebp - 0x14]
call fcn.01005cea
test al, al
je 0x10092aa
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x1c
push 0xffffffffffffffff
call fcn.01011300
test eax, eax
je 0x10092aa
push esi
push 0xfffe
push ebx
push esi
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x14]
push esi
push esi
call dword [0x1014310]
test eax, eax
jge 0x10092c1
push esi
push dword [ebp - 0x940]
lea eax, [ebp - 0x81c]
push 0x10
push esi
push eax
push esi
call fcn.01011354
lea ecx, [ebp - 0x14]
call fcn.01006100
jmp 0x1009318
cmp eax, esi
je 0x1009318
cmp eax, 0xffffffff
je 0x1009318
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea ecx, [ebp - 0x93c]
push ecx
add eax, eax
push eax
lea eax, [ebp - 0x81c]
push eax
push dword [0x1015a28]
call edi
push esi
lea eax, [ebp - 0x93c]
push eax
push 4
push 0x1001768
push dword [0x1015a28]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret
Function at 0x10093f1
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
movzx eax, word [esi]
cmp ax, 0x25
je 0x100934f
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x100943c
push edi
push reloc.ADVAPI32.dll_SetSecurityDescriptorDacl
pop edi
jmp 0x1009362
cmp ax, di
je 0x100936a
cmp ax, 0x3d
je 0x100936a
inc esi
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x1009355
cmp word [esi], 0x3d
je 0x1009377
xor eax, eax
jmp 0x100943b
push ebx
push esi
call fcn.0100486a
mov esi, eax
xor ebx, ebx
cmp word [esi], 0x22
pop ecx
jne 0x1009396
push 0x22
pop edi
push esi
inc ebx
call fcn.0100486a
pop ecx
mov esi, eax
movzx eax, word [esi]
test ax, ax
je 0x10093d3
cmp di, ax
jne 0x10093b5
test ebx, ebx
je 0x10093c6
push esi
call fcn.0100486a
cmp di, word [eax]
pop ecx
jne 0x10093c6
mov esi, eax
push esi
call fcn.0100486a
mov esi, eax
movzx eax, word [esi]
test ax, ax
pop ecx
jne 0x100939e
movzx eax, word [esi]
test ax, ax
je 0x10093d3
cmp di, ax
jne 0x100941a
test ebx, ebx
je 0x10093e0
push esi
call fcn.0100486a
pop ecx
mov esi, eax
mov ecx, dword [ebp + 8]
mov eax, esi
sub eax, dword [ecx]
sar eax, 1
lea ebx, [eax + 1]
cmp ebx, 0x7fffffff
jbe 0x1009405
push 0
push 0x1001bd0
call fcn.01008f7e
pop ecx
xor eax, eax
jmp 0x1009439
mov edi, dword [ebp + 0xc]
cmp dword [edi + 4], ebx
jge 0x100941e
push ebx
mov ecx, edi
call fcn.01005c2d
cmp dword [edi], 0
jne 0x100941e
xor eax, eax
jmp 0x100943a
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [edi + 4]
push dword [edi]
call fcn.0100624b
push esi
call fcn.0100486a
mov dword [ebx], eax
xor eax, eax
inc eax
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10098a1
Capabilities:
Accept command line arguments
Check os version
Compare security identifiers
Parse pe header
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
test eax, eax
mov dword [esi + 0x34], eax
pop esi
jne 0x10098d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001d78
call fcn.01008f7e
pop ecx
pop ecx
xor eax, eax
jmp 0x10098d4
xor eax, eax
inc eax
pop ebp
ret 8
Function at 0x3533700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0353378f
jae 0x353370e
xor ecx, ecx
call fcn.0353378f
jae 0x353373d
xor eax, eax
call fcn.0353378f
jae 0x353374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0353378f
adc al, al
jae 0x353372f
jne 0x3533779
stosb byte es:[edi], al
jmp 0x3533711
call fcn.0353379b
sub ecx, ebx
jne 0x3533756
call fcn.03533799
jmp 0x3533775
lodsb al, byte [esi]
shr eax, 1
je 0x3533783
adc ecx, ecx
jmp 0x3533772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03533799
cmp eax, 0x7d00
jae 0x3533772
cmp ah, 5
jae 0x3533773
cmp eax, 0x7f
ja 0x3533774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3533711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x407648
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d020]
jne 0x407652
repz ret
jmp fcn.00407a7a

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1001e60
Capabilities:
Access peb ldr_data

Disassembly:
push 8
push 0x1001ee8
call fcn.010015a0
mov esi, dword [ebp + 8]
mov dword [ebp + 8], esi
and dword [ebp - 4], 0
mov eax, dword [0x1040184]
mov edi, dword [ebp + 0xc]
cmp eax, 0x1040184
je 0x1001e95
test byte [eax + 0x1c], 2
je 0x1001e95
cmp byte [eax + 0x19], 5
jae 0x102312b
push esi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov ebx, edi
shl ebx, 2
mov eax, dword [esi + 0x20]
add eax, ebx
cmp dword [eax], 0
jne 0x10021b1
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1001ecb
test byte [eax + 0x1c], 2
je 0x1001ecb
cmp byte [eax + 0x19], 5
jae 0x10231bd
mov dword [ebp - 4], 0xfffffffe
call fcn.01001f10
xor eax, eax
call fcn.01001580
ret 0xc
mov ecx, dword [ebp + 0x10]
test byte [ecx + 4], 2
jne 0x1023143
and dword [eax], 0
push edi
push esi
call fcn.01001f1f
jmp 0x1001ecb
push edi
push 0x1027a40
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1001e95
mov eax, dword [esi + 0x20]
add eax, ebx
dec dword [eax]
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x102317b
test byte [eax + 0x1c], 2
je 0x102317b
cmp byte [eax + 0x19], 5
jb 0x102317b
mov ecx, dword [esi + 0x20]
push dword [ebx + ecx]
push edi
push 0x1027a40
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002a94
mov eax, dword [esi + 0x20]
shl edi, 4
cmp dword [ebx + eax], 0
jne 0x1023195
xor eax, eax
add edi, dword [esi + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x1001ecb
mov eax, dword [esi + 0x24]
add edi, eax
mov ecx, dword [edi + 0xc]
mov esi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword fs:[0x18]
push ecx
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1001ecb
push edi
push 0x1027a40
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1001ecb

Function at 0x1001f1f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
shl esi, 4
mov eax, dword [edi + 0x24]
cmp dword [eax + esi + 0xc], 0
jne 0x1022ff3
mov edi, dword [edi + 0x24]
xor eax, eax
add edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [eax], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1001f2f
Function at 0x1002869
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x10028a6
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov esi, dword [edi]
mov eax, dword [ebx + 0x20]
cmp dword [eax + esi*4], 0
ja 0x10232d4
add edi, 0xc
dec dword [ebp + 8]
jne 0x100288d
pop edi
pop esi
push ebx
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
test byte [edi + 8], 1
jne 0x100289c
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1023309
test byte [eax + 0x1c], 2
je 0x1023309
cmp byte [eax + 0x19], 3
jb 0x1023309
push esi
push 0x1027a40
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], 0
je 0x102331e
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push esi
push ebx
call fcn.01002420
mov dword [ebp - 4], 0xd
jmp 0x100289c

Function at 0x1002e94
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0x1002f28
call fcn.01002093
xor esi, esi
cmp dword [0x104020c], esi
je 0x1002f23
push 0x104020c
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov edi, eax
mov dword [0x104020c], esi
mov dword [0x1040220], esi
cmp dword [ebp + 8], esi
je 0x1002f0c
mov eax, dword [0x1040214]
cmp eax, esi
je 0x1002edd
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x1040218]
cmp eax, esi
je 0x1002f0c
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1024822
push dword [0x1040218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1040218], esi
call fcn.01002f4d
push 0x1002f38
call fcn.01002093
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
xor edi, edi
jmp 0x1002ec2
push esi
push dword [0x1040218]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1002efa

Function at 0x10035df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
movzx eax, di
push 0
shr eax, 4
inc eax
push eax
push 6
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x1003656
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003656
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1003655
and edi, 0xf
movzx eax, word [esi]
inc esi
inc esi
test edi, edi
je 0x1003635
movzx eax, ax
dec edi
lea esi, [esi + eax*2]
jmp 0x1003623
movzx edi, ax
add edi, edi
lea eax, [edi + 2]
push eax
call fcn.01001fd2
mov dword [ebp - 4], eax
test eax, eax
je 0x1003655
push edi
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
Function at 0x10036ba
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x144
push 0x1003730
call fcn.010027c0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x154], eax
cmp dword [0x1040198], 0xffffffff
je 0x100ebf1
mov eax, dword [0x1040198]
cmp dword [ebp + 0x10], eax
ja 0x10249a4
push 0x15
pop esi
call fcn.01002061
test eax, eax
je 0x1003720
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp - 0x154]
push dword [0x104020c]
call fcn.010037a1
mov esi, eax
mov dword [ebp - 0x14c], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.01002808
ret 0xc
push 0x118
push 0
lea eax, [ebp - 0x134]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [0x1040198], 0x40
mov dword [ebp - 0x138], 0x11c
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100ec3c
cmp byte [ebp - 0x1e], 1
jne 0x100ec3c
mov dword [0x1040198], 0x10
lea eax, [ebp - 0x13c]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1004b68
mov edi, 0x80000002
push edi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
call esi
test eax, eax
jne 0x100eca8
mov dword [ebp - 0x140], 4
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x100cdc0
push dword [ebp - 0x13c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1024994
push dword [ebp - 0x13c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea eax, [ebp - 0x13c]
push eax
push ebx
push 0
push 0x1002970
push edi
call esi
test eax, eax
jne 0x10036df
mov dword [ebp - 0x140], 4
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x100cda4
push dword [ebp - 0x13c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x100ed0d
mov eax, dword [ebp - 0x144]
neg eax
sbb eax, eax
and eax, 0x30
add eax, 0x10
mov dword [0x1040198], eax
push dword [ebp - 0x13c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10036df
mov eax, dword [ebp - 0x144]
mov dword [0x1040198], eax
jmp 0x100ec9c
xor eax, eax
jmp 0x1003722
Function at 0x10038df
Capabilities:
Query or enumerate registry value

Disassembly:
lea eax, [ebp - 0x19]
push eax
mov ecx, dword [edi + 8]
call fcn.0100250b
push eax
push ebx
call sub.WINSTA.dll_WinStationIsSessionRemoteable
test al, al
je 0x10037e7
cmp byte [ebp - 0x19], bl
jne 0x101a40c
push edi
call fcn.01002a10
test eax, eax
jne 0x101a40c
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_RtlGetNtProductType]
xor esi, esi
inc esi
cmp dword [ebp + 8], esi
jne 0x1003817
mov ecx, dword [edi + 4]
call fcn.010038a7
test eax, eax
je 0x101a42b
push dword [ebp - 0x20]
mov esi, 0x100388c
push esi
mov ecx, dword [edi]
call fcn.0100188c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 0x20019
push ebx
push 0x1002970
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100386f
mov dword [ebp - 0x28], 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push esi
push dword [ebp - 0x24]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
push dword [ebp - 0x24]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov dword [ebp - 4], 0xfffffffe
call fcn.010038d7
xor eax, eax
cmp dword [ebp - 0x20], ebx
sete al
call fcn.01001580
ret 4
push 0x1c
push 0x1003918
call fcn.010015a0
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
call fcn.010029e9
test eax, eax
jne 0x101a418
jmp 0x101a40c
mov dword [ebp - 0x20], 1
jmp 0x100386f
mov ecx, dword [edi + 8]
call fcn.010029fc
cmp eax, 3
jne 0x10037c7
jmp 0x101a40c
mov dword [ebp - 0x20], esi
jmp 0x1003817
Function at 0x10039d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0xc
cmp dword [ebp + 0xc], eax
jne 0x10060e8
push dword [ebp + 8]
call fcn.010038df
neg eax
sbb eax, eax
and eax, 0x1d4c1
dec eax
mov dword [ebp + 0xc], eax
mov ecx, dword [0x1040184]
cmp ecx, 0x1040184
je 0x1003a2c
test byte [ecx + 0x1c], 0x10
je 0x1003a2c
cmp byte [ecx + 0x19], 4
jb 0x1003a2c
push eax
push 0x1001f8c
push 0x25
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01001f65
mov eax, dword [ebp + 0xc]
leave
ret 8
mov edx, dword [0x7ffe02d8]
cmp edx, dword [ecx + 0x3c]
je 0x10039e7
jmp 0x101f1fd
push ebx
push esi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 4]
push ecx
mov ebx, 0x20019
push ebx
push eax
push 0x101f368
mov edi, 0x80000002
push edi
mov dword [ebp - 8], 4
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 0x7530
call esi
test eax, eax
jne 0x101f275
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x101f34c
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x101f266
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], 1
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp + 8], 0
jne 0x101f2c4
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x101f2d0
push edi
call esi
test eax, eax
jne 0x101f2c4
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x101f34c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x101f2bb
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
mov dword [ebp + 0xc], eax
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
jmp 0x10039fc
Function at 0x1004348
Capabilities:
Get process heap force flags

Disassembly:
push edi
push dword [esi + 0x22c]
call fcn.01039902
jmp 0x10043e1
push edi
push dword [esi + 0x22c]
call fcn.0103992d
jmp 0x10043e1
push edi
push dword [esi + 0x22c]
call fcn.01039958
jmp 0x10043e1
push edi
push dword [esi + 0x22c]
call fcn.01039983
jmp 0x10043e1
test byte [eax + 0x1c], 1
je 0x1004428
cmp byte [eax + 0x19], 4
jb 0x1004428
push edi
push dword [ebx*4 + 0x1003ba4]
push esi
push 0x1003b94
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010390b0
jmp 0x1004428
push 0x10
push 0x1004460
call fcn.010015a0
and dword [ebp - 0x1c], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0x1d4]
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [ebp + 0xc]
push ebx
push 0x1004440
call fcn.01004921
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10043b0
test byte [eax + 0x1c], 1
je 0x10043b0
cmp byte [eax + 0x19], 4
jb 0x10043b0
push dword [ebx*4 + 0x1003ba4]
push esi
push 0x1003b94
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004481
mov eax, dword [0x1040184]
and dword [ebp - 4], 0
cmp ebx, 0xd
ja case.default.0x10043b9
jmp dword [ebx*4 + 0x100430b]
push dword [ebp + 0x18]
push dword [ebp + 0x18]
call fcn.01009a74
push eax
push dword [ebp + 0x14]
push dword [0x1040208]
push edi
push dword [esi + 0x22c]
call fcn.01009a49
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1040184]
mov dword [ebp - 4], 0xfffffffe
mov edi, dword [ebp - 0x1c]
test edi, edi
jne 0x1019250
cmp eax, 0x1040184
je 0x1004428
test byte [eax + 0x1c], 1
je 0x1004428
cmp byte [eax + 0x19], 4
jb 0x1004428
push dword [ebx*4 + 0x1003ba4]
push esi
push 0x1003b94
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004481
push esi
push ebx
push 0x1004450
call fcn.01004921
mov eax, edi
call fcn.01001580
ret 0x14
push edi
push dword [esi + 0x22c]
call fcn.010093b5
jmp 0x10043e1
push dword [ebp + 0x14]
push dword [0x1040208]
push edi
push dword [esi + 0x22c]
call fcn.0100cd68
jmp 0x10043e1
push edi
push dword [esi + 0x22c]
call fcn.010152a2
jmp 0x10043e1
push edi
push dword [esi + 0x22c]
call fcn.01015a57
jmp 0x10043e1
push edi
push dword [esi + 0x22c]
call fcn.010161ba
jmp 0x10043e1
cmp eax, 0x1040184
jne 0x10042d7
jmp 0x1004428
push edi
push dword [esi + 0x22c]
call fcn.0101705c
jmp 0x10043e1
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [0x1040208]
push edi
push dword [esi + 0x22c]
call fcn.01017c01
jmp 0x10043e1
push edi
push dword [esi + 0x22c]
call fcn.010186de
jmp 0x10043e1
push edi
push dword [esi + 0x22c]
call fcn.01019122
jmp 0x10043e1
cmp edi, 0x3e5
jne 0x10161a5
cmp eax, 0x1040184
je 0x1004428
test byte [eax + 0x1c], 1
je 0x1004428
cmp byte [eax + 0x19], 4
jb 0x1004428
push dword [ebp + 0x14]
push dword [ebx*4 + 0x1003ba4]
push esi
push 0x1003b94
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100994f
jmp 0x1004428
Function at 0x1004bd9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
push 0x1004c38
call fcn.010015a0
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
push 4
pop edi
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x20]
push eax
push 0x20019
push esi
push dword [ebp + 8]
push dword [ecx + 0x7c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x1008570
mov dword [ebp - 4], 0xfffffffe
call fcn.01004c59
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x1004c1d
cmp dword [ebp - 0x28], edi
je 0x1004c1d
jmp 0x10201bf
mov dword [ebp - 0x1c], 2
jmp 0x1004c1d

Function at 0x1004c75
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
push 0x1004d18
call fcn.010015a0
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
push 4
pop ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], edi
lea esi, [ecx + 0x2c]
cmp dword [esi], edi
jne 0x1004cd3
lea eax, [ebp - 0x20]
push eax
push 0x20019
push edi
push 0x1002970
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1004cfc
push edi
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x101ec07
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1004cfc
cmp dword [ebp - 0x28], ebx
jne 0x1004d45
cmp dword [ebp - 0x2c], ebx
jne 0x1004d45
mov dword [ebp - 4], 0xfffffffe
call fcn.01004d39
mov eax, dword [ebp - 0x24]
call fcn.01001580
ret 8
mov dword [ebp - 0x1c], 0x57
jmp 0x1004cfc
push dword [ebp - 0x20]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1004cd3