joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020e0
Capabilities:
Shutdown system

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push eax
push 0x4061a0
push 0
call sub.DSETUP.dll_DirectXSetupA
add eax, 0xd
cmp eax, 0xe
ja case.0x4020fb.10
jmp dword [eax*4 + 0x402340]
xor eax, eax
pop ebp
pop ebx
ret
xor eax, eax
pop ebp
pop ebx
ret
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075a4]
push 0x4075b0
push 0xe
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075b0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075a4]
push 0x4075b0
push 0xc
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075b0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075a4]
push 0x4075b0
push 0xd
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075b0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075a4]
push 0x4075b0
push 0x10
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075b0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075a4]
push 0x4075b0
push 0xf
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075b0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075a4]
push 0x4075b0
push 0xa
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075b0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075a4]
push 0x4075b0
push 9
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075b0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075a4]
push 0x4075b0
push 0x11
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075b0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075a4]
push 0x4075b0
push 0xb
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075b0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075a4]
push 0x4075b0
push 8
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 4
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075b0
push 0
call ebp
cmp eax, 6
jne 0x402337
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
pop ebp
pop ebx
ret
Function at 0x402380
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x2c]
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
push ebp
push 0
push 0x4000110b
push eax
push edi
call sub.MSVFW32.dll_MCIWndCreateA
mov ecx, dword [esp + 0x40]
add esp, 0x10
mov esi, eax
nop
mov eax, dword [esp + 0x34]
push 0
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x38]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ecx
push 0
push 0x499
push esi
call ebx
test eax, eax
je 0x4023e3
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
push eax
push edi
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x48f
push esi
call ebx
push 0
push 1
push 0x476
push esi
call ebx
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4028f0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x348
lea eax, [esp + 0x248]
push ebx
lea ecx, [esp + 0x14c]
push esi
lea edx, [esp + 0x50]
push edi
push ebp
push eax
lea eax, [esp + 0x14]
push ecx
push edx
mov ecx, dword [0x4061fc]
push eax
push ecx
call fcn.00402b40
lea ecx, [esp + 0x24]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop
push ecx
call esi
lea ecx, [esp + 0x58]
push ecx
call esi
push 0x407680
push 0x136
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x35c]
push 0xc8
push 0x4077c0
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 1
mov dword [0x4075a4], eax
push eax
call esi
push 0xc8
mov ecx, dword [0x4075a4]
push 0x4073c0
push 5
push ecx
call esi
push 0xc8
mov eax, dword [0x4075a4]
push 0x407490
push 6
push eax
call esi
push 0xc8
mov eax, dword [0x4075a4]
push 0x4071e0
push 7
push eax
call esi
push 0xc8
mov eax, dword [0x4075a4]
push 0x407110
push 2
push eax
call esi
mov dword [0x407558], 0x7f
mov eax, dword [esp + 0x364]
cmp byte [eax], 0x55
jne 0x4029da
call fcn.00401300
jmp 0x402b22
push 0x406038
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0x406038
call esi
test eax, eax
je 0x4029fc
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x402b22
push 0x406038
push str.Loader
call esi
test eax, eax
je 0x402a18
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x402b22
push 0xc0c0c0
xor esi, esi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x7f00
mov dword [0x4075a8], eax
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ecx, dword [0x4075a4]
mov dword [esp + 0x2c], eax
mov eax, 0x4061b4
and eax, 0xffff
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadIconA]
push 4
mov ebp, dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], str.Loader
call ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], esi
mov eax, dword [0x4075a4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x402780
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
push esi
mov ecx, dword [0x4075a4]
push ecx
push esi
push esi
push 0x32
push 0x32
push 0xa
push 0xa
push 0xcf0000
push 0x406038
push str.Loader
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push esi
mov dword [0x4070f8], eax
push esi
push 0x6bc
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x3c]
push esi
push esi
push esi
push ecx
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
call esi
test eax, eax
je 0x402b16
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x3c]
push eax
call edi
lea eax, [esp + 0x3c]
push eax
call ebx
lea eax, [esp + 0x3c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
jne 0x402af7
mov eax, dword [0x4075a8]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x348
ret 0x10
Function at 0x402d10
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40620c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x402d2e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x406208], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x406204], bl
jne 0x402d88
cmp dword [0x407acc], 0
je 0x402d76
mov edi, dword [0x407ac8]
sub edi, 4
cmp edi, dword [0x407acc]
jb 0x402d76
mov eax, dword [edi]
test eax, eax
je 0x402d6b
call eax
sub edi, 4
cmp edi, dword [0x407acc]
jae 0x402d63
push 0x406014
push 0x406010
call fcn.00402dc0
add esp, 8
push 0x40601c
push 0x406018
call fcn.00402dc0
add esp, 8
test ebx, ebx
jne 0x402daf
mov dword [0x40620c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x402de0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x403d14
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4061d0], eax
xor eax, eax
mov al, byte [0x4061d1]
mov dword [0x4061dc], eax
mov eax, dword [0x4061d0]
shr dword [0x4061d0], 0x10
and eax, 0xff
mov dword [0x4061d8], eax
shl eax, 8
add eax, dword [0x4061dc]
mov dword [0x4061d4], eax
call fcn.00403cd0
test eax, eax
jne 0x402e54
push 0x1c
call fcn.00402f80
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403af0
call fcn.00403300
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407ac4], eax
call fcn.00403960
mov dword [0x406210], eax
test eax, eax
je 0x402e87
cmp dword [0x407ac4], 0
jne 0x402e91
push 0xffffffffffffffff
call fcn.00402cd0
add esp, 4
call fcn.004036e0
call fcn.004035f0
call fcn.00402ca0
mov esi, dword [0x407ac4]
mov al, byte [esi]
cmp al, 0x22
je 0x402eb8
cmp al, 0x20
jbe 0x402ee5
inc esi
cmp byte [esi], 0x20
ja 0x402eb0
jmp 0x402ee5
inc esi
cmp byte [esi], 0x22
je 0x402ee4
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x402edf
xor eax, eax
mov al, bl
push eax
call fcn.00403590
add esp, 4
test eax, eax
je 0x402ed9
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x402ec1
cmp byte [esi], 0x22
jne 0x402ee5
inc esi
cmp byte [esi], 0
je 0x402ef5
cmp byte [esi], 0x20
ja 0x402ef5
inc esi
cmp byte [esi], 0
jne 0x402eea
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x402f19
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00402cd0
jmp 0x402f5a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403960
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x4064e0], ebx
jne 0x4039af
call esi
cmp eax, ebx
mov edi, eax
je 0x40398d
mov dword [0x4064e0], 1
jmp 0x4039af
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4039a5
mov dword [0x4064e0], 2
jmp 0x4039af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4064e0], 1
jne 0x403a5e
test edi, edi
jne 0x4039d2
call esi
mov edi, eax
test edi, edi
jne 0x4039d2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4039ec
add esi, 2
cmp word [esi], 0
jne 0x4039da
add esi, 2
cmp word [esi], 0
jne 0x4039da
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x403a4d
push ebp
call fcn.00404180
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x403a4d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403a3c
push ebx
call fcn.00404130
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4064e0], 2
jne 0x403ae2
test ebx, ebx
jne 0x403a81
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x403a81
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x403a96
inc ebp
cmp byte [ebp], 0
jne 0x403a88
inc ebp
cmp byte [ebp], 0
jne 0x403a88
sub ebp, ebx
inc ebp
push ebp
call fcn.00404180
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x403abb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x403e30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x4064f8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x403e57
add eax, 8
inc ecx
cmp eax, 0x406588
jb 0x403e48
cmp dword [ecx*8 + 0x4064f8], edx
lea ebx, [ecx*8]
jne 0x40401b
cmp dword [0x40621c], 1
je 0x403fd7
cmp dword [0x40621c], 0
jne 0x403e8e
cmp dword [0x406220], 1
je 0x403fd7
cmp edx, 0xfc
je 0x40401b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x403ecb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403f0f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4052e0
push ebp
call fcn.00404030
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4052c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x4064fc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00404990
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x4079c0], 0
je 0x403fed
mov eax, dword [0x4079c0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403ff7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4064fc]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x12c6cfd4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x12c6cfde
pushal
call 0x12c6cfe4
pop ebp
sub ebp, 0x10
sub ebp, 0x2c6cfd4
mov al, byte [esp + 0x28]
cmp al, 1
je 0x12c6d008
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x12c6d011
mov eax, 0x2c6cfd4
add eax, ebp
add eax, 0x63
mov ecx, 0x5ca
mov edx, 0xe36115e8
xor byte [eax], dl
inc eax
dec ecx
jne 0x12c6d028
jmp 0x12c6d03b
arpl word [0xe8d46163], sp
call 0x22f03a2e
call 0x38b2b933
push eax
out dx, al
call 0xd319b93a
call 0x1ce6b93f
jmp 0x12c6d079
jmp 0x32479d42
Function at 0x40f0a0
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4c6e3a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
mov ebp, 0xc0000000
push ebp
push str..pipepeanuthull6_pipe_ctrl
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f171
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x40f122
push 0x32
call ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x44]
push 0
push 4
push 0x3408
push ecx
mov ebp, 0x80000000
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40f14f
call esi
cmp eax, 0xe7
jne 0x40f13f
push 0x4e20
push str..pipepeanuthull6_pipe_ctrl
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x40f14f
cmp edi, 3
jg 0x40f20a
push 0x3e8
call ebx
push 0
push 0
push 3
push 0
push 0
push ebp
push str..pipepeanuthull6_pipe_ctrl
add edi, 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f0f3
xor ebx, ebx
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x24], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
push 0x54
mov dword [esp + 0x1c], eax
call fcn.00488fa5
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
cmp edi, ebx
mov dword [esp + 0x28], ebx
je 0x40f1bc
mov ecx, edi
call fcn.004894a8
mov dword [edi], vtable.CClientThread.0
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov byte [edi + 0x50], 0
jmp 0x40f1be
xor edi, edi
push ebx
push ebx
push 4
mov ecx, edi
mov dword [esp + 0x34], 0xffffffff
call fcn.0048995a
cmp ebp, 0x80000000
mov eax, dword [edi + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov dword [edi + 0x44], esi
mov dword [ecx], eax
mov eax, dword [edx + 0x30]
mov dword [edi + 0x4c], eax
jne 0x40f1f3
mov byte [edi + 0x50], 1
mov edx, dword [edi + 0x2c]
mov ecx, dword [esp + 0x34]
push edx
mov dword [edi + 0x48], ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x18]
jmp 0x40f20c
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x4104d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0x2d8], eax
push esi
mov esi, dword [esp + 0x2e4]
push edi
lea eax, [esp + 8]
push eax
push 0xf003f
xor edi, edi
push edi
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x410562
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410526
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2ec]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410549
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.004a74b2
add esp, 0x2dc
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea esp, [esp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push eax
mov dword [esp + 0x30], 0xc8
mov dword [esp + 0x34], 0x1fe
call ebx
mov esi, eax
test esi, esi
jne 0x4105c3
mov ecx, dword [esp + 0x2f0]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x41062a
add edi, 1
test esi, esi
je 0x410570
mov eax, dword [esp + 0x2ec]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4105ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2f0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410610
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.004a74b2
add esp, 0x2dc
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2ec]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410658
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2f0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41067b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2e4]
pop ebx
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004a74b2
add esp, 0x2dc
ret
Function at 0x4106a0
Capabilities:
Delete registry value

Disassembly:
push esi
mov esi, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x410701
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4106dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4106fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410739
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x410756
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
ret