joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a150
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4aa380
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47a2f7
mov ecx, dword [0x4db3a0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x47a24c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00478e70
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0049a43e
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0049a351
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4d8144
call fcn.0049a3bf
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00479230
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0049a43e
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0049a351
lea ecx, [esp + 0xc]
call fcn.0049a819
mov ecx, dword [esp + 0xc]
push 0x4d8b84
push ecx
call fcn.00489b94
add esp, 8
test eax, eax
je 0x47a274
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x47a1ad
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0049a351
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0049a351
jmp 0x47a2fb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00479ef0
test eax, eax
push 0
je 0x47a2df
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00478590
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x47a2c5
cmp eax, 0x64
jg 0x47a2b3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x47a250
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x47a250
cmp eax, 0x64
jge 0x47a24c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x47a250
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00478590
mov esi, eax
jmp 0x47a250
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x47a305
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x482c90
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x482cda
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x482d09
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x482d4b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x49c75c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49c794
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049a7ac
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049a784
jmp 0x49c7a0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49de53
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49de95
call fcn.004a3c18
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49de95
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49de8c
xor eax, eax
jmp 0x49de9d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049dea3
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a4148
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a4176
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a4194
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a40ae
jmp 0x4a4194
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a4194
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a40ae
test edi, edi
mov eax, edi
jne 0x4a417e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x1006daa
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001b40
call fcn.01006fa8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1006de5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006de5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1006dfd
cmp eax, 0x20b
je 0x1006dea
mov dword [ebp - 0x1c], edi
jmp 0x1006e11
cmp dword [ecx + 0x84], 0xe
jbe 0x1006de5
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1006e0b
cmp dword [ecx + 0x74], 0xe
jbe 0x1006de5
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1013b88], 0xffffffff
or dword [0x1013b8c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1008050]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100804c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1013b90], eax
call fcn.01006fa0
cmp dword [0x1008030], edi
jne 0x1006e6c
push fcn.01006fa0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006f89
push 0x1008010
push 0x100800c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1008048]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1008044]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1008008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01002965
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1006ee3
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1006f18
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01006fe3
ret

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 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 0x403bfc
Capabilities:
Encrypt data using tea

Disassembly:
sub esp, 0x28
and dword [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], edi
mov eax, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
call fcn.00403287
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
add ebx, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], eax
pop esi
mov dword [esp + 0x20], 2
add dword [esp + 0x20], 3
mov edx, dword [esp + 0x1c]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x24], 0xedeb2e40
cmp dword [0x67e944], 0xfa9
mov dword [esp + 0x10], eax
lea ecx, [ebx + edx]
mov eax, dword [0x67e988]
cmove eax, dword [esp + 0x24]
and dword [esp + 0x24], 0
cmp dword [0x67e944], 0x3eb
mov dword [0x67e988], eax
mov eax, dword [0x67e990]
cmove eax, dword [esp + 0x24]
mov dword [0x67e990], eax
mov eax, dword [esp + 0x1c]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x28]
xor eax, ecx
mov dword [0x67e98c], 0xf4ea3dee
xor eax, dword [esp + 0x10]
sub ebp, eax
mov dword [esp + 0x14], eax
mov eax, ebp
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
mov eax, ebp
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
add dword [esp + 0x14], eax
lea eax, [ebx + ebp]
xor eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov edx, 0x9e3779b9
lea ecx, [esp + 0x18]
call fcn.00403bf0
dec esi
je 0x403d20
mov ebx, dword [esp + 0x18]
jmp 0x403c4a
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], ebp
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x41241f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x448228]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407986
mov dword [ebp - 0x14], eax
cmp dword [0x67fb04], esi
jne 0x412512
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41249f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4125f2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4125f2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4125f2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x67fb04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x67fb08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x67fb0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x67fb14], eax
test eax, eax
je 0x41250f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x67fb10], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412537
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41252a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41254c
push 4
pop eax
jmp 0x4125f4
cmp dword [ebp - 0x14], esi
je 0x41254c
push dword [0x67fb04]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x412531
mov eax, dword [0x67fb10]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4125aa
cmp dword [0x67fb14], edi
je 0x4125aa
push eax
call ebx
push dword [0x67fb14]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4125aa
test eax, eax
je 0x4125aa
call ecx
test eax, eax
je 0x41259f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41259f
test byte [ebp - 8], 1
jne 0x4125aa
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4125da
mov eax, dword [0x67fb08]
cmp eax, edi
je 0x4125d7
push eax
call ebx
test eax, eax
je 0x4125d7
call eax
mov esi, eax
test esi, esi
je 0x4125d7
mov eax, dword [0x67fb0c]
cmp eax, edi
je 0x4125d7
push eax
call ebx
test eax, eax
je 0x4125d7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x67fb04]
call ebx
test eax, eax
je 0x4125f2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4125f4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bc0
mov esp, ebp
pop ebp
ret
Function at 0x1004767
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, edi
jne 0x101d690
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x101d6a5
push ebx
shr eax, 1
push 2
inc eax
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call dword [0x104b7ec]
mov ebx, eax
cmp ebx, edi
je 0x101d6af
lea eax, [ebp - 4]
push eax
push ebx
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, edi
jne 0x101d6b9
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
jle 0x10047ed
and eax, 0xffff
or eax, 0x80070000
jmp 0x10047ed
mov eax, 0x8000ffff
jmp 0x10047ed
mov eax, 0x8007000e
jmp 0x10047ec
push ebx
call dword [0x104b7e8]
cmp esi, edi
jle 0x101d6d0
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x10047ec
Function at 0x1005a42
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x278
mov eax, 0x104427d
call fcn.01002325
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov eax, dword [eax]
mov esi, 0x2001f
push esi
push eax
push ecx
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], ebx
call fcn.01003c19
cmp eax, ebx
jne 0x101f652
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x284]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x234], 0x100
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1005b9a
cmp eax, ebx
jne 0x101f679
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x224]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.01003c19
cmp eax, ebx
jne 0x101f68c
lea ecx, [ebp - 0x27c]
call fcn.01004a46
lea ecx, [ebp - 0x254]
call fcn.01004c7e
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 3
call fcn.01004d1e
mov edi, eax
cmp edi, ebx
jl 0x101f69c
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.010052ce
inc dword [ebp - 0x214]
lea ecx, [ebp - 0x254]
call fcn.010027b4
lea ecx, [ebp - 0x27c]
call fcn.0100284e
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call fcn.01003c55
jmp 0x1005a97
xor edi, edi
lea eax, [ebp - 0x218]
push eax
push dword [0x104b7f0]
lea ecx, [ebp - 0x224]
call fcn.01002f88
test eax, eax
jne 0x1005bca
mov eax, dword [ebp - 0x214]
cmp dword [ebp - 0x218], eax
jne 0x101f6c2
lea ecx, [ebp - 0x224]
call fcn.01003c55
mov eax, edi
call fcn.01002362
ret 8
cmp edi, ebx
jge 0x1005b9c
jmp 0x1005bca
cmp eax, 2
je 0x101f667
cmp eax, ebx
jle 0x101f665
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
lea ecx, [ebp - 0x224]
call fcn.01003c55
mov eax, ebx
jmp 0x1005bd7
jle 0x101f685
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1005bdf
jle 0x101f698
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x101f6b2
lea ecx, [ebp - 0x254]
call fcn.010027b4
lea ecx, [ebp - 0x27c]
call fcn.0100284e
lea ecx, [ebp - 0x230]
call fcn.01003c55
jmp 0x1005bdf
mov edi, 0x80004005
jmp 0x1005bca
Function at 0x1005bea
Capabilities:
Read file via mapping

Disassembly:
push 0xa0
mov eax, 0x1042ec1
call fcn.01001630
mov edi, ecx
mov dword [ebp - 0x10], edi
xor ebx, ebx
mov esi, 0xf001f
cmp dword [edi + 0x54], ebx
jne 0x1005d27
lea ecx, [ebp - 0x38]
call fcn.01006680
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 4], ebx
call fcn.01006c48
push ebx
push esi
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.01005db7
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.0100591f
lea eax, [ebp - 0xac]
push eax
call fcn.01004a6a
push ebx
push esi
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.01005db7
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.0100591f
lea eax, [ebp - 0xac]
push eax
call fcn.01004a94
push ebx
push esi
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.01005db7
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.0100591f
lea eax, [ebp - 0xac]
push eax
call fcn.01006b03
push ebx
push 4
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.01005db7
lea ecx, [ebp - 0xac]
call fcn.0100591f
mov edi, 0x10064c4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.01006821
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4c]
call fcn.01006a76
push 0x1005d74
push 4
push ebx
push 4
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [ebp - 0x10]
push eax
add ecx, 0x50
call fcn.0100272d
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
call fcn.010064d1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
call fcn.010064d1
lea ecx, [ebp - 0x38]
call fcn.01006db5
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
cmp dword [edi + 0x54], ebx
je 0x101e5f2
cmp dword [edi + 0x4c], ebx
jne 0x1005d52
mov eax, dword [edi + 0x54]
push 4
push ebx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x4c], eax
cmp eax, ebx
je 0x101e60f
cmp dword [ebp - 0x10], ebx
jl 0x1005d5f
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x48]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
call fcn.01001600
ret
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x1005d5f
jmp 0x1005d33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1005d68
and eax, 0xffff
or eax, 0x80070000
jmp 0x1005d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101e623
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
jmp 0x1005d52
Function at 0x100612f
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x260
mov eax, 0x1044071
call fcn.01002325
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov eax, dword [eax]
mov esi, 0x2001f
push esi
push eax
push ecx
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], ebx
call fcn.01003c19
cmp eax, ebx
jne 0x101f078
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x240]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x238], 0x100
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1006292
cmp eax, ebx
jne 0x101f09f
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x228]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.01003c19
cmp eax, ebx
jne 0x101f0b2
lea ecx, [ebp - 0x26c]
call fcn.01003876
push 0x104a154
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
call fcn.010038e0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.01006765
mov edi, eax
cmp edi, ebx
jl 0x101f0c2
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x218]
call fcn.01004ca7
mov ecx, dword [ebp - 0x218]
inc dword [ebp - 0x214]
add ecx, 0xfffffff0
call fcn.01002400
lea ecx, [ebp - 0x26c]
call fcn.010023c1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.01003c55
jmp 0x1006184
xor edi, edi
lea eax, [ebp - 0x21c]
push eax
push dword [0x104b7f0]
lea ecx, [ebp - 0x228]
call fcn.01002f88
test eax, eax
jne 0x10062c2
mov eax, dword [ebp - 0x214]
cmp dword [ebp - 0x21c], eax
jne 0x101f0eb
lea ecx, [ebp - 0x228]
call fcn.01003c55
mov eax, edi
call fcn.01002362
ret 8
cmp edi, ebx
jge 0x1006294
jmp 0x10062c2
cmp eax, 2
je 0x101f08d
cmp eax, ebx
jle 0x101f08b
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
lea ecx, [ebp - 0x228]
call fcn.01003c55
mov eax, ebx
jmp 0x10062cf
jle 0x101f0ab
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10062d7
jle 0x101f0be
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x101f0db
mov ecx, dword [ebp - 0x218]
add ecx, 0xfffffff0
call fcn.01002400
lea ecx, [ebp - 0x26c]
call fcn.010023c1
lea ecx, [ebp - 0x234]
call fcn.01003c55
jmp 0x10062d7
mov edi, 0x80004005
jmp 0x10062c2