joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov dword [ebp - 4], 0
push 0
push 0x1000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call fcn.00403747
mov dword [ebp - 4], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x8000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4010e9
mov eax, dword [0x42e0e0]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0xc]
mov edx, dword [ebp + 8]
push edx
call fcn.00401000
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401189
add esp, 8
test eax, eax
jne 0x40110d
xor eax, eax
jmp 0x401183
push 0x6d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_HideCaret]
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
push 1
push 0
push 1
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jbe 0x401168
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowCaret]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401189
Capabilities:
Copy file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x42e574], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x42e510
push 0x42e4ac
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4011d1
xor eax, eax
jmp 0x4011fa
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4013f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 8], 0xb0
jae 0x401496
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x118]
push eax
call fcn.004013f8
add esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
jne 0x401452
mov byte [ebp - 0x114], 0
jmp 0x401494
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
jne 0x401476
lea edx, [ebp - 0x104]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x401494
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0xd
div ecx
test edx, edx
jne 0x401494
mov byte [ebp - 0x112], 0x4d
mov byte [ebp - 0x111], 0
jmp 0x40149f
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x402fad
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x184], 0
mov ecx, 5
mov esi, 0x42dbdc
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xec], eax
push 0x94
push 0
lea eax, [ebp - 0x180]
push eax
call fcn.00426190
add esp, 0xc
mov word [ebp - 0x32], 0x66
lea ecx, [ebp - 0x38]
push ecx
call fcn.004014b9
add esp, 4
mov dword [ebp - 0xc], eax
mov word [ebp - 0x2a], 0x37
mov word [ebp - 0x28], 0x32
push 0xa8
push 0
lea edx, [ebp - 0xe0]
push edx
call fcn.00426190
add esp, 0xc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov eax, dword [ebp - 0xec]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xec], 0
lea ecx, [ebp - 0x20]
push ecx
push 0x65
call fcn.004014f2
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 0x184], 0
jne 0x4030d5
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
cmp eax, 0x41
je 0x4030d5
mov ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx + 1]
cmp edx, 0x42
je 0x4030d5
push 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.004261f0
add esp, 0xc
push 0
push 0x402f88
push 0
mov edx, dword [ebp - 0xec]
push edx
call dword [sym.imp.GDI32.dll_EnumObjects]
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x42dbc4]
mov dword [eax + 0x158], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00401558
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xf8]
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x15c], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x15c], 0
je 0x40314d
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xd4], 0
push 0x8000
push 0
mov edx, dword [ebp - 0xe8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xf8]
mov dword [0x42e0e0], ecx
mov eax, dword [ebp - 4]
jmp 0x403169
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xa
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40316f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x42a864]
mov dword [ecx + 0xc8], edx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x42dbc0]
mov dword [eax + 0xc0], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 4]
mov dword [edx + 0xe0], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1cc], 0xdaaba2f5
push 0x8000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xe0], 0
je 0x403211
mov edx, dword [ebp - 8]
add edx, 0x7c
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c0], 0x42a86c
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ecx + 0x1d4], edx
jmp 0x4032b2
mov eax, dword [str.appinitcmd.ini]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x42dbf4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x42dbf8]
mov dword [ebp - 0x18], edx
mov ax, word [0x42dbfc]
mov word [ebp - 0x14], ax
mov cl, byte [0x42dbfe]
mov byte [ebp - 0x12], cl
push 0
push 0
push 4
push 0
push 0
push 1
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4032b2
push 4
push 0x1000
push 0x12c
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4032b2
push 0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x4032b2
push 0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp - 4]
add ecx, 0x780
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
mov dword [eax + 0x11c], 0x3ec0004f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xe0]
mov dword [ecx + 0xcc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x42a868]
mov dword [ecx + 0xc4], edx
push 0x2bc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
mov ecx, dword [0x42dbbc]
mov dword [eax + 0xbc], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a4], 0x42a030
mov eax, dword [ebp - 4]
push eax
call fcn.00403940
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x403747
Capabilities:
Copy file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
push 1
push 0xd
call fcn.0040339d
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x403790
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x18], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0
je 0x4037b0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [ebp - 8]
jmp 0x40393c
mov dword [ebp - 0x484], 0
mov edx, dword [str.setting.ini]
mov dword [ebp - 0x47c], edx
mov eax, dword [0x42dc04]
mov dword [ebp - 0x478], eax
mov ecx, dword [0x42dc08]
mov dword [ebp - 0x474], ecx
mov edx, dword [str.existing]
mov dword [ebp - 0x470], edx
mov eax, dword [0x42dc10]
mov dword [ebp - 0x46c], eax
mov cl, byte [0x42dc14]
mov byte [ebp - 0x468], cl
push 0
lea edx, [ebp - 0x470]
push edx
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 4
push 0
push 1
push 4
lea ecx, [ebp - 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x403842
xor eax, eax
jmp 0x40393c
cmp dword [ebp - 0x484], 0xffffffff
jne 0x40387e
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.setini.xml
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0xffffffff
jne 0x40387e
xor eax, eax
jmp 0x40393c
push 0
lea edx, [ebp - 0x48c]
push edx
push 0x448
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403913
push 2
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x488], eax
push 0
mov eax, dword [ebp - 0x48c]
push eax
push 0
mov ecx, dword [ebp - 0x488]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x464]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov ecx, dword [ebp - 0x48c]
push ecx
push 0
mov edx, dword [ebp - 0x488]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x48c], 0x448
je 0x403842
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4271a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42dd40
cmp edx, dword [eax]
je 0x4271c7
add eax, 8
inc ecx
cmp eax, 0x42ddd0
jl 0x4271b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42dd40]
jne 0x4272f5
mov eax, dword [0x42e580]
cmp eax, 1
je 0x4272cf
test eax, eax
jne 0x4271f8
cmp dword [0x42dc94], 1
je 0x4272cf
cmp edx, 0xfc
je 0x4272f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42722f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00427f70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00426110
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x427272
lea eax, [ebp - 0x1a4]
push eax
call fcn.00426110
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4294a8
push edi
call fcn.00428160
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00427f70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00427f80
lea eax, [ebp - 0xa0]
push 0x429488
push eax
call fcn.00427f80
push dword [esi + 0x42dd44]
lea eax, [ebp - 0xa0]
push eax
call fcn.00427f80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004280d4
add esp, 0x2c
pop edi
jmp 0x4272f5
lea eax, [ebp + 8]
lea esi, [esi + 0x42dd44]
push 0
push eax
push dword [esi]
call fcn.00426110
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x160c1000
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x160ca64c]
sub esp, 0x98
test eax, eax
jne 0x160c1048
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x160c103e
cmp dword [esp + 0x14], 1
jne 0x160c103e
cmp dword [esp + 0xc], 0xa
jb 0x160c103e
mov dword [0x160ca648], 1
mov dword [0x160ca64c], 1
mov eax, dword [0x160ca648]
test eax, eax
je 0x160c10a3
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 4]
push 1
push ecx
push 0
push 0x2000
mov dword [esp + 0x14], 0
call esi
push 1
push 0
push 0
push 0x2001
call esi
mov edx, dword [esp + 0xa0]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 4]
push 1
push eax
push 0
push 0x2001
call esi
pop esi
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add esp, 0x98
ret
Function at 0x160c20f0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x160c20c9
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x160c20c4
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
lock add byte [eax], al
lock add byte [eax], al
cmp edx, 0x3000
jne 0x160c20ae
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x160c20b6
cmp edx, ebx
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x160c2085
add eax, dword [eax + 4]
jmp 0x160c2072
mov dword [ebp + 0xc], ebx
jmp 0x160c20d4
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x160c20ec
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x160c210a
movzx eax, ax
lea eax, [eax + eax*4]
add al, 0x80
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x160c2168
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x160c214f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x160c2158
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x160c2162
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x160c2144
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x160c20ce
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x160c21b5
dec eax
je 0x160c21ac
sub eax, 3
je 0x160c21a3
mov dword [ebp - 4], 0x40
jmp 0x160c21d2
mov dword [ebp - 4], 4
jmp 0x160c21b8
mov dword [ebp - 4], 0x20
jmp 0x160c21b8
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x160c2204
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x160c2184
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.160c1a15
fbld tbyte [esi + 0x75ffacd3]
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x160c2210
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x160c6470
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x160c749b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2048
call fcn.160c7370
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call fcn.160c5d90
mov ecx, esi
call fcn.160c61c0
mov ebx, dword [ebp + 8]
mov edx, dword [esi + 0x108]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push edi
push ecx
push edi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x160c6614
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
jne 0x160c655c
push eax
push str.D:dailybuildPP12PR1ReleaseSrcCommonPPUtilLibRegSection.cpp
push 0x2b7
push 8
lea ecx, [ebp - 0x1038]
call fcn.160c6fa0
mov eax, dword [ebp - 0x834]
mov ecx, pe_nt_image_headers32
lea esi, [ebp - 0x1034]
lea edi, [ebp - 0x824]
mov edx, dword [ebp - 0x82f]
push 0x160c8340
rep movsd dword es:[edi], dword [esi]
mov ecx, pe_nt_image_headers32
lea esi, [ebp - 0xc34]
lea edi, [ebp - 0x424]
mov byte [ebp - 4], 1
rep movsd dword es:[edi], dword [esi]
mov cl, byte [ebp - 0x830]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x828]
mov byte [ebp - 0x20], cl
push eax
mov dword [ebp - 0x1f], edx
mov dword [ebp - 0x828], 0x160c81d0
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 0x108]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edi
push edx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x160c65a2
push 0
push str.D:dailybuildPP12PR1ReleaseSrcCommonPPUtilLibRegSection.cpp
push 0x2bd
push eax
lea ecx, [ebp - 0x1848]
call fcn.160c6fa0
lea ecx, [ebp - 0x1848]
push 0x160c8340
push ecx
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call fcn.160c6130
mov ecx, esi
call fcn.160c5ce0
mov ecx, esi
call fcn.160c61c0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x108]
push edx
push edi
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x160c65fd
push 0
push str.D:dailybuildPP12PR1ReleaseSrcCommonPPUtilLibRegSection.cpp
push 0x2c7
push eax
lea ecx, [ebp - 0x2058]
call fcn.160c6fa0
lea edx, [ebp - 0x2058]
push 0x160c8340
push edx
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call fcn.160c6130
mov ecx, esi
call fcn.160c5d90
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x160c6a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x160c74f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1838
call fcn.160c7370
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi]
mov dword [ebp - 0x14], ebx
call dword [eax + 4]
test eax, eax
jne 0x160c6a5a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10c]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x160c6af7
mov edx, dword [esi + 0x21c]
lea edi, [esi + 0x110]
push edi
push ebx
push ebx
lea ecx, [esi + 4]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x160c6a9e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ebx
je 0x160c6ace
cmp eax, 0xea
je 0x160c6ace
push ebx
push str.D:dailybuildPP12PR1ReleaseSrcCommonPPUtilLibRegValue.cpp
push 0x63
push eax
lea ecx, [ebp - 0x828]
call fcn.160c6fa0
lea eax, [ebp - 0x828]
push 0x160c8340
push eax
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [edi]
cmp edi, ebx
jbe 0x160c6ae5
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 0x10c], eax
jmp 0x160c6af7
push 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0x10c], eax
add esp, 4
mov byte [eax], bl
mov edx, dword [esi + 0x10c]
lea ecx, [esi + 0x110]
push ecx
lea eax, [ebp - 0x14]
push edx
mov edx, dword [esi + 0x21c]
push eax
lea ecx, [esi + 4]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x160c6b44
push ebx
push str.D:dailybuildPP12PR1ReleaseSrcCommonPPUtilLibRegValue.cpp
push 0x6e
push eax
lea ecx, [ebp - 0x1038]
call fcn.160c6fa0
lea eax, [ebp - 0x1038]
push 0x160c8340
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 0x108]
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
je 0x160c6b96
cmp ecx, eax
je 0x160c6b96
cmp ecx, 2
jne 0x160c6b5f
cmp eax, 1
je 0x160c6b96
push ebx
push str.D:dailybuildPP12PR1ReleaseSrcCommonPPUtilLibRegValue.cpp
push 0x71
push 0x65d
lea ecx, [ebp - 0x1848]
call fcn.160c6fa0
lea ecx, [ebp - 0x1848]
push 0x160c8340
push ecx
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 0x160c6a8b
ret
cmp eax, ebx
jne 0x160c6ba0
mov dword [esi + 0x108], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret