joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431e20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00424510
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x431eeb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x431eeb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x431e9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x431ea9
or bh, 8
and edi, 0x8000000
je 0x431ec4
mov eax, dword [0x46887c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x431eeb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4322c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4322eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43230f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43232a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x43724f
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 0x437291
call fcn.00448108
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x437291
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x437288
xor eax, eax
jmp 0x437299
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043729f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4474dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00448108
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x447519
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x447519
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x44751d
xor eax, eax
jmp 0x44759b
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004382f9
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x447555
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x44753f
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0044768c
push ebx
mov edi, eax
call fcn.00438322
test edi, edi
pop ecx
je 0x447597
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004473f2
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004475a0
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x2e00cdd4
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x2e035974
call fcn.2e034a75
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x128], esi
mov eax, 0x102
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], esi
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x124], 0x2e045068
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], eax
push esi
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.2e00c84b
push 0x104
mov byte [ebp - 4], 2
call fcn.2e00b815
cmp eax, dword [ebp - 0x11c]
jle 0x2e00ce52
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx]
push esi
push eax
lea eax, [ebp - 0x124]
push eax
push ecx
call dword [edx]
push dword [ebp - 0x120]
push esi
push esi
push 0x20
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push esi
push 1
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x120]
call sub.Csi.dll_void___stdcall_Csi::GetFolderProxyFromPath_class_MsoCF::String_struct_MsoCF::WzTraits___struct_Csi::IFolderProxy____bool__bool___bool_
mov ecx, dword [ebp - 0x128]
cmp ecx, esi
jne 0x2e00ceb2
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x120], eax
je 0x2e00cea2
push dword [ebp - 0x120]
call fcn.2e01b8e4
mov ecx, dword [ebp - 0x128]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x2e00cf05
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x2e00cf05
push esi
push esi
push edi
push esi
push esi
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x12c], esp
mov dword [eax], esi
push ecx
mov eax, esp
mov dword [eax], 0x2e001e40
mov eax, dword [ecx]
mov dword [ebp - 0x12c], esp
call dword [eax + 0x34]
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x120], eax
je 0x2e00cef1
push dword [ebp - 0x120]
call fcn.2e01b8e4
mov eax, dword [ebp - 0x128]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x2e00cf05
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.2e034af8
ret 4
Function at 0x2e00fe1b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x2e035fbd
call fcn.2e034a0c
mov esi, ecx
push 4
call fcn.2e02d1bf
mov ecx, dword [esi + 0x4c]
cmp eax, dword [ecx + 8]
jle 0x2e00fe43
mov edx, dword [ecx]
mov edi, dword [edx]
push 1
push eax
push ecx
push edx
call dword [edi]
mov ebx, 0x2e0436ec
call dword [ebx - 4]
xor edi, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x2e00feca
push dword [ebx]
mov edx, dword [eax]
lea ecx, [esi + 4]
push ecx
mov ecx, eax
call dword [edx]
cmp eax, edi
jl 0x2e00feca
mov eax, dword [esi + 0x4c]
mov edi, dword [eax + 8]
mov eax, dword [esi + 0x50]
inc eax
push eax
call fcn.2e02d1bf
cmp edi, eax
jge 0x2e00feaf
mov ecx, dword [esi + 0x50]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp eax, 1
jge 0x2e00fe8a
xor eax, eax
inc eax
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.2e00f346
push dword [eax]
call fcn.2e02d1bf
mov ecx, dword [esi + 0x4c]
cmp eax, dword [ecx + 8]
jle 0x2e00feaf
mov edx, dword [ecx]
mov edi, dword [edx]
push 1
push eax
push ecx
push edx
call dword [edi]
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x50]
lea edx, [ebp - 0x14]
push edx
lea eax, [eax + ecx*4]
push eax
call fcn.2e00f2c3
inc dword [esi + 0x50]
xor edi, edi
add ebx, 8
cmp ebx, 0x2e043704
jle 0x2e00fe48
mov dword [ebp - 0x10], edi
push 4
pop ebx
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push 0x20019
push edi
push edi
push edi
push 0x2e002470
push 0x80000001
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x2e00ff39
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x2e00245c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2e00ff39
cmp dword [ebp - 0x1c], ebx
jne 0x2e00ff39
cmp dword [ebp - 0x20], edi
je 0x2e00ff39
push 3
mov ecx, esi
call fcn.2e00fcba
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x2e00ff4a
push dword [ebp - 0x10]
call fcn.2e01ac1d
xor eax, eax
call fcn.2e034ae4
ret

Function at 0x2e010d1e
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0
push 3
call dword [sym.imp.MSO.dll_Ordinal_7086]
test eax, eax
jne 0x2e010d35
xor eax, eax
pop ebp
ret 0x14
test byte [ebp + 0x18], 8
jne 0x2e010d50
cmp dword [ebp + 8], 0
je 0x2e010d2f
push dword [ebp + 8]
call fcn.2e00bb71
cmp eax, 0x104
jg 0x2e010d2f
pop ebp
jmp dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
Function at 0x2e01b8f8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x2e01b920
xor al, al
pop edi
leave
ret 4
push ebx
push esi
push 0x2e002fb4
push dword [edi]
xor ebx, ebx
inc ebx
xor esi, esi
mov dword [ebp - 8], ebx
call fcn.2e01b859
test eax, eax
je 0x2e01b957
dec dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 8], 2
jne 0x2e01b957
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov al, bl
pop ebx
jmp 0x2e01b91b
lea edi, [edi + esi*4]
mov eax, dword [edi]
mov esi, dword [sym.imp.MSO.dll_Ordinal_5098]
push ebx
inc eax
push 0x2e002fa0
inc eax
push eax
call esi
test eax, eax
je 0x2e01b97c
mov byte [0x2e045afc], bl
jmp 0x2e01ba7d
mov eax, dword [edi]
push ebx
inc eax
push 0x2e002f90
inc eax
push eax
call esi
test eax, eax
je 0x2e01b99b
mov byte [0x2e045afd], bl
mov byte [ebp - 1], bl
jmp 0x2e01ba92
mov eax, dword [edi]
push ebx
inc eax
push 0x2e002f80
inc eax
push eax
call esi
test eax, eax
je 0x2e01b9b7
mov byte [0x2e045afe], bl
jmp 0x2e01ba7d
mov eax, dword [edi]
push ebx
inc eax
push 0x2e002f70
inc eax
push eax
call esi
test eax, eax
je 0x2e01ba19
cmp dword [ebp + 8], ebx
jle 0x2e01ba80
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push 0x104
lea edi, [eax + ecx*4]
push 0x2e0456e0
mov byte [0x2e045aff], bl
push dword [edi]
call fcn.2e00bb94
cmp dword [ebp + 8], 2
jle 0x2e01ba7d
mov edi, dword [edi + 4]
push ebx
inc edi
push 0x2e002f60
inc edi
push edi
call dword [sym.imp.MSO.dll_Ordinal_9139]
test eax, eax
setne al
mov byte [0x2e045c90], al
jmp 0x2e01ba7d
cmp dword [ebp + 8], ebx
jle 0x2e01ba80
mov eax, dword [edi]
push ebx
inc eax
push 0x2e002f54
inc eax
push eax
call esi
test eax, eax
je 0x2e01ba80
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push ebx
lea edi, [eax + ecx*4]
push 0x2e002f44
push dword [edi]
call esi
test eax, eax
je 0x2e01ba4f
and dword [0x2e043d4c], 0
jmp 0x2e01ba7d
push ebx
push 0x2e002f34
push dword [edi]
call esi
test eax, eax
je 0x2e01ba65
mov dword [0x2e043d4c], ebx
jmp 0x2e01ba7d
push ebx
push 0x2e002f2c
push dword [edi]
call esi
test eax, eax
je 0x2e01ba80
mov dword [0x2e043d4c], 2
mov byte [ebp - 1], bl
cmp byte [0x2e045afd], 0
jne 0x2e01ba92
cmp byte [0x2e045afe], 0
je 0x2e01bab5
cmp dword [ebp + 8], ebx
jle 0x2e01bab5
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
push ebx
inc eax
push 0x2e002f1c
inc eax
push eax
call esi
test eax, eax
je 0x2e01bab5
mov byte [0x2e045c91], bl
cmp byte [ebp - 1], 0
je 0x2e01bac1
mov byte [0x2e045c92], bl
mov bl, byte [ebp - 1]
mov edi, dword [ebp - 0xc]
jmp 0x2e01b94a
Function at 0x2e01c51d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x2e0030f4
push 0x2e0030d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x2e01c552
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x2e0030d4
push ebx
call edi
mov dword [0x2e0030d4], esi
test esi, esi
jne 0x2e01c5b6
mov dword [0x2e0030d4], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x2e043e40], 0x44bf19b1
pop ebx
leave
ret

Function at 0x2e01c5d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2e0030d4]
jne 0x2e034d48
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x2e045f98], eax
mov dword [0x2e045f94], ecx
mov dword [0x2e045f90], edx
mov dword [0x2e045f8c], ebx
mov dword [0x2e045f88], esi
mov dword [0x2e045f84], edi
mov word [0x2e045fb0], ss
mov word [0x2e045fa4], cs
mov word [0x2e045f80], ds
mov word [0x2e045f7c], es
mov word [0x2e045f78], fs
mov word [0x2e045f74], gs
pushfd
pop dword [0x2e045fa8]
mov eax, dword [ebp]
mov dword [0x2e045f9c], eax
mov eax, dword [ebp + 4]
mov dword [0x2e045fa0], eax
lea eax, [ebp + 8]
mov dword [0x2e045fac], eax
mov eax, dword [ebp - 0x320]
mov dword [0x2e045ee8], 0x10001
mov eax, dword [0x2e045fa0]
mov dword [0x2e045e9c], eax
mov dword [0x2e045e90], 0xc0000409
mov dword [0x2e045e94], 1
mov eax, dword [0x2e0030d4]
mov dword [ebp - 0x328], eax
mov eax, dword [0x2e043e40]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x2e045ee0], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x2e006a28
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x2e045ee0], 0
jne 0x2e034e34
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x2e01c632
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.2e01c61b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x2e003134
push 0x80000000
call esi
test eax, eax
jne 0x2e01c6db
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.2e01c61b
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x2e01c6cd
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x2e00311c
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2e01c6cd
cmp dword [ebp + 8], esi
jne 0x2e01c6cd
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x2e01c6cd
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x2e01c6bf
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x2e01c6c9
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x2e01c6eb
cmp dword [ebp - 4], ebx
je 0x2e01c6db
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x2e01c6e9
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x2e01c6f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x2e045ca4], 0
je 0x2e01c707
mov eax, dword [0x2e045ca0]
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.2e01c61b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x2e003178
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x2e01c768
lea eax, [ebp - 8]
push eax
push 0x2e045ca0
push 0
push 0
push dword [0x2e043e48]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2e01c768
cmp dword [ebp - 8], 4
jne 0x2e01c768
cmp dword [ebp - 4], eax
jmp 0x2e01c7ad
lea ecx, [ebp - 4]
call fcn.2e01c61b
push eax
push ebx
xor ebx, ebx
push ebx
push 0x2e003140
push edi
call esi
test eax, eax
jne 0x2e01c7c9
push 4
pop esi
lea eax, [ebp - 8]
push eax
push 0x2e045ca0
push ebx
push ebx
push dword [0x2e043e48]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2e01c7c9
cmp dword [ebp - 8], esi
jne 0x2e01c7c9
cmp dword [ebp - 4], ebx
mov esi, dword [0x2e045ca0]
mov byte [0x2e045ca4], 1
je 0x2e01c7c5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x2e01c7e6
mov dword [0x2e045ca0], ebx
mov byte [0x2e045ca4], 1
cmp dword [ebp - 4], ebx
je 0x2e01c7e4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2e01ce3b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x2e0030d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x474], eax
push 0x105
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ebx, ebx
cmp eax, ebx
jne 0x2e01ce77
xor eax, eax
jmp 0x2e01cfa0
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x2e01ce96
push 0x5c
pop edx
mov word [ecx], dx
xor ecx, ecx
mov word [ebp + eax - 0x25e], cx
push esi
push edi
push 0x106
lea eax, [ebp - 0x260]
push eax
mov esi, 0x2e0034a0
push esi
call fcn.2e01ce10
push 8
push ebx
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
jne 0x2e01ced6
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x2e01cf88
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2e00348c
push edi
call esi
push 0x2e00346c
push edi
mov dword [ebp - 0x478], eax
call esi
mov dword [ebp - 0x470], eax
cmp eax, ebx
je 0x2e01cf88
mov edi, 0x2e003458
mov esi, 0x2e003408
cmp dword [ebp - 0x474], ebx
je 0x2e01cf60
cmp dword [ebp - 0x478], ebx
je 0x2e01cf88
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x474]
call dword [ebp - 0x478]
cmp eax, ebx
jne 0x2e01cf59
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
lea eax, [ebp - 0x54]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
cmp eax, ebx
je 0x2e01cf8c
cmp eax, 0x642
je 0x2e01cf8c
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
push ebx
push ebx
push edi
push esi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
test eax, eax
je 0x2e01cf8c
xor eax, eax
jmp 0x2e01cf9e
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x2e045ce0], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.2e01c5d1
leave
ret 4
Function at 0x2e01d03f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x2e0030d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x21c], eax
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x2e003328
push 0x80000002
mov dword [ebp - 0x214], ebx
xor edi, edi
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x2e002fc8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x214], ebx
je 0x2e01d0cc
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x2e01d0f7
cmp eax, 0x208
ja 0x2e01d0f7
shr eax, 1
mov edi, eax
je 0x2e01d0f7
lea eax, [ebp + edi*2 - 0x212]
cmp word [eax], 0x5c
je 0x2e01d0f7
dec edi
dec eax
dec eax
cmp edi, ebx
jne 0x2e01d0ea
push dword [ebp - 0x21c]
xor eax, eax
mov word [ebp + edi*2 - 0x210], ax
lea eax, [ebp - 0x210]
push eax
call fcn.2e01cfaf
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.2e01c5d1
leave
ret 4

Function at 0x2e01d147
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x2e0030d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push 0x2e003390
push 0x80000002
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 0x20a
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2e01d21e
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x2e0033e4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x2e01d1cd
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x2e01d21e
mov eax, dword [ebp - 0x218]
cmp eax, 2
jb 0x2e01d21e
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x212], cx
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x2e0034b8
call fcn.2e01ce10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
jne 0x2e01d21e
push 0x2e0034b0
call fcn.2e01d03f
mov ebx, eax
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.2e01c5d1
leave
ret